/* auth */
@layer modules {
/* =========================
   登录注册页面样式 - Login & Register
   ========================= */

/* 登录页面特殊样式 */
.login-section {
    position: relative;
    min-height: calc(100vh - 200px);
    background: #f8fafb;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.login-section .login-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    transition: all 0.3s ease;
}

.login-section .login-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

/* 品牌信息区域 */
.brand-info {
    background: #2d3748;
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.brand-logo {
    text-align: center;
    margin-bottom: 60px;
}

.brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.brand-logo i {
    font-size: 36px;
    color: white;
}

.brand-logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: white;
}

.brand-logo p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
    color: white;
}

.brand-features {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
    color: white;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.stat-desc {
    font-size: 14px;
    opacity: 0.8;
    color: white;
}

/* 装饰元素 */
.decoration-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.decoration-square {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* 表单区域样式 */
.login-form {
    padding: 64px 60px;
    background: white;
}

.form-header {
    text-align: center;
    margin-bottom: 48px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #fff;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.form-options {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: #4299e1;
}

.form-links {
    display: flex;
    gap: 16px;
}

.register-link {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.register-link:hover {
    text-decoration: underline;
}

.login-btn-primary {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #4299e1;
    color: white;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.form-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #1a73e8;
    border-bottom: 2px solid #1a73e8;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}

.tab-btn:hover:not(.active) {
    background: rgba(66, 153, 225, 0.1) !important;
    color: #4299e1 !important;
}

/* 表单输入框增强样式 */
.login-form input {
    transition: all 0.2s ease !important;
}

.login-form input:focus {
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1) !important;
    outline: none !important;
    transform: translateY(-1px);
}

.login-form input:hover {
    border-color: #63b3ed !important;
}

/* 提交按钮增强 */
.login-form .btn {
    transition: all 0.3s ease;
}

.login-form .btn:hover {
    background: #3182ce !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4) !important;
}

/* 验证码按钮样式 */
.login-form button[onclick="sendVerifyCode()"] {
    background: #e2e8f0;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.login-form button[onclick="sendVerifyCode()"]:hover {
    background: #4299e1 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

/* 链接样式 */
.login-form .forgot-password {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.login-form .forgot-password:hover {
    color: #3182ce !important;
    text-decoration: underline !important;
}

.login-form a[href="register.html"] {
    color: #1a73e8;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-form a[href="register.html"]:hover {
    color: #3182ce !important;
    text-decoration: underline !important;
    background: rgba(26, 115, 232, 0.05);
}

/* 复选框样式 */
.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a73e8;
}

/* 注册页面样式 */
.register-section {
    background: #f8fafb;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.register-section .register-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

.register-form {
    padding: 50px 40px;
}

.register-form h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.register-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.register-form input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    transform: translateY(-1px);
}

.register-form input:hover {
    border-color: #4285f4;
}

/* 验证码输入组 */
.verify-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.verify-group input {
    flex: 1;
}

.verify-group button {
    background: #e2e8f0;
    color: #4a5568;
    border: 2px solid #cbd5e0;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 120px;
}

.verify-group button:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.verify-group button:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 服务协议样式 */
.agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1a73e8;
    flex-shrink: 0;
}

.agreement a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement a:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* 忘记密码页面样式 */
.forgot-password-section {
    background: #fafbfc;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.forgot-password-container {
    max-width: 500px;
    margin: 0 auto;
}

.forgot-password-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.step-number.active {
    background: #1a73e8;
    color: white;
}

.step-number:not(.active) {
    background: #e0e0e0;
    color: #666;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.recovery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.recovery-option {
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recovery-option:hover {
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.1);
}

.recovery-option.selected {
    border-color: #1a73e8;
    background: rgba(26, 115, 232, 0.05);
}

.recovery-option i {
    font-size: 40px;
    color: #1a73e8;
    margin-bottom: 20px;
}

.recovery-option h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.recovery-option p {
    color: #666;
    font-size: 14px;
}

/* 表单验证样式 */
.form-group .error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group .success {
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
}

.success-message {
    color: #4caf50;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* 表单提交状态 */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* 倒计时按钮样式 */
.countdown-btn {
    background: #f7fafc !important;
    color: #a0aec0 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
}
