/* ==========================================
   爆发富论坛 - 认证页面样式（登录/注册）
   ========================================== */

.auth-page {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* 认证表单区域 */
.auth-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .logo {
    display: inline-block;
    margin-bottom: 24px;
}

.auth-header .logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i:first-child {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-secondary);
}

/* 密码强度指示器 */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.password-strength .strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    transition: background var(--transition-fast);
}

.password-strength .strength-bar.weak {
    background: var(--danger-color);
}

.password-strength .strength-bar.medium {
    background: var(--accent-color);
}

.password-strength .strength-bar.strong {
    background: var(--secondary-color);
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.remember-me,
.agree-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input,
.agree-terms input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.remember-me span,
.agree-terms span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.agree-terms a {
    color: var(--primary-color);
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* 认证按钮 */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.btn-auth:hover {
    background: var(--primary-dark);
}

/* 分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* 社交登录 */
.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-social {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-social.wechat {
    background: #07c160;
}

.btn-social.qq {
    background: #12b7f5;
}

.btn-social.weibo {
    background: #e6162d;
}

/* 底部链接 */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* 右侧图片区域 */
.auth-image {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 60px 60px;
    opacity: 0.5;
}

.auth-image-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    max-width: 400px;
}

.auth-image-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-image-content p {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.auth-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.auth-stats .stat {
    text-align: center;
}

.auth-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-stats .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 响应式 */
@media screen and (max-width: 991px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-image {
        display: none;
    }
    
    .auth-box {
        padding: 32px 24px;
    }
}

@media screen and (max-width: 479px) {
    .auth-box {
        padding: 24px 20px;
    }
    
    .auth-header .logo-text {
        font-size: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .input-group input {
        padding: 10px 14px 10px 40px;
        font-size: 0.875rem;
    }
    
    .btn-auth {
        padding: 12px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
