/* ========================================
   登录/注册页面样式
   PC 端适配 + 响应式设计
   ======================================== */

.auth-body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 背景装饰 */
.auth-background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.auth-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 50%, rgba(168, 85, 247, 0.15), transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(212, 175, 55, 0.1), transparent 50%);
}

.auth-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.08) 1.5px, transparent 1.5px);
    background-size: 300px 300px;
    background-position: 0 0, 150px 150px;
    opacity: 0.6;
    animation: particlesMove 60s linear infinite;
}

@keyframes particlesMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-300px); }
}

/* 主容器 */
.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
}

/* 品牌区域（左侧） */
.auth-brand {
    flex: 1;
    display: none;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--glass-border);
}

@media (min-width: 992px) {
    .auth-brand {
        display: flex;
        align-items: center;
    }
}

.brand-content {
    max-width: 480px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
}

.brand-logo .logo-icon {
    font-size: 40px;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: 1.2;
    background: linear-gradient(to bottom, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.brand-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 48px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}

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

/* 移动端品牌 Logo */
.mobile-brand {
    text-align: center;
    padding: 40px 0;
}

.mobile-brand .logo-icon {
    font-size: 64px;
    margin-bottom: 12px;
    display: block;
}

.mobile-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    background: linear-gradient(to bottom, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 表单容器（右侧） */
.auth-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    max-width: 560px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .auth-form-container {
        padding: 60px 80px;
    }
}

.auth-form-wrapper {
    width: 100%;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    background: linear-gradient(to bottom, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .form-title {
        font-size: 40px;
    }
}

.form-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group input {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.password-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--accent-purple);
}

/* 按钮样式 */
.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* 分割线 */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    position: relative;
    background: var(--bg-deep);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 社交登录 */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-main);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4285f4, #34a853);
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

/* 底部文字 */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.auth-footer a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-terms {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-terms a {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.toast.error {
    border-color: #ef4444;
    color: #ef4444;
}

/* 加载状态 */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* 响应式优化 */
@media (max-width: 767px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-form-container {
        padding: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .auth-form-container {
        padding: 40px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

.brand-content {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}
