/* 认证页面通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90D9;
    --primary-light: #6BA3E0;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #E5E5E5;
    --bg-color: #F5F7FA;
    --input-bg: #F8F9FA;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

/* 容器 */
.auth-container {
    min-height: 100%;
    padding: 20px;
    position: relative;
}

/* 返回按钮 */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.back-btn:active {
    background: rgba(0, 0, 0, 0.05);
}

.back-btn svg {
    width: 24px;
    height: 24px;
}

/* 头部区域 */
.auth-header {
    text-align: center;
    padding-top: 60px;
    margin-bottom: 40px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3);
}

.auth-logo svg {
    width: 44px;
    height: 44px;
    color: #fff;
}

.auth-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* 表单区域 */
.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.verify-code {
    display: flex;
    gap: 12px;
}

.form-group.verify-code .input-wrapper {
    flex: 1;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    margin-right: 12px;
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    height: 50px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* 验证码按钮 */
.verify-btn {
    padding: 0 20px;
    height: 52px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.verify-btn:active {
    background: var(--primary-light);
}

.verify-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:active {
    opacity: 0.8;
}

/* 用户协议 */
.form-agreement {
    margin-bottom: 24px;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.agreement-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-label a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 提交按钮 */
.auth-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
}

.auth-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.2);
}

/* 底部链接 */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.auth-footer a:active {
    opacity: 0.8;
}
