/*
- 开发时间：2026-07-03
- 更新时间：2026-07-03
- 文件作用：cloudPrompt「1点01」和「工作清单」共享的登录页样式
            两页面删除导航栏后独立访问，需登录才能使用
- 实现原理：全屏登录卡片居中，主色 #1a237e 与项目风格一致；
            输入框/按钮/错误提示完整样式；登录成功后登录层隐藏显示主内容
- 如何调用：由 tasks.html / worklist.html 通过 <link rel="stylesheet" href="auth.css"> 引入
- 所属流程：cloudPrompt 认证流程
*/

/* 登录层：全屏遮罩，居中卡片 */
#auth-login-view {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}
/* 登录卡片 */
.auth-login-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 400px;
    padding: 32px 28px;
}
/* 登录标题 */
.auth-login-title {
    font-size: 22px;
    color: #1a237e;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}
.auth-login-subtitle {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
}
/* 表单项 */
.auth-form-group {
    margin-bottom: 16px;
}
.auth-form-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}
.auth-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s;
}
.auth-form-input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}
/* 登录按钮 */
.auth-btn-login {
    width: 100%;
    padding: 11px;
    background-color: #1a237e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.15s;
    margin-top: 8px;
}
.auth-btn-login:hover {
    background-color: #283593;
}
.auth-btn-login:disabled {
    background-color: #9fa8da;
    cursor: not-allowed;
}
/* 错误提示 */
.auth-error-msg {
    color: #dc3545;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    min-height: 18px;
}
/* 登录中提示 */
.auth-loading {
    color: #888;
    font-size: 13px;
    text-align: center;
}
