/**
 * 登录/注册页共用样式
 * 主题：纯 CSS 渐变背景 + 极简白 + 绿色点缀
 * 悬浮玻璃卡片 + 深色模式 + 响应式 + 客服悬浮工具栏 + 回到首页
 * 
 * 无图片依赖，全部由 CSS 实现
 */

/* ==================== CSS 变量（浅色模式） ==================== */
:root {
    /* 主色：绿 */
    --auth-primary: #10b981;
    --auth-primary-dark: #059669;
    --auth-primary-light: #ecfdf5;
    --auth-primary-soft: #d1fae5;
    --auth-primary-glow: rgba(16, 185, 129, 0.2);
    
    /* 辅助色 */
    --auth-accent: #0ea5e9;
    --auth-success: #10b981;
    --auth-danger: #ef4444;
    --auth-warning: #f59e0b;
    
    /* 文字 */
    --auth-text: #0f172a;
    --auth-text-secondary: #475569;
    --auth-text-muted: #94a3b8;
    
    /* 玻璃卡片 */
    --auth-card-bg: rgba(255, 255, 255, 0.75);
    --auth-card-border: rgba(255, 255, 255, 0.85);
    --auth-card-shadow: 
        0 24px 60px rgba(15, 23, 42, 0.1),
        0 8px 20px rgba(15, 23, 42, 0.05);
    
    /* 输入框 */
    --auth-input-bg: rgba(255, 255, 255, 0.9);
    --auth-input-border: rgba(15, 23, 42, 0.08);
    --auth-input-focus: rgba(16, 185, 129, 0.15);
    
    /* 左侧品牌区 */
    --auth-brand-bg-card: rgba(255, 255, 255, 0.55);
    --auth-brand-border: rgba(255, 255, 255, 0.7);
    --auth-brand-text: #0f172a;
    --auth-brand-text-secondary: #475569;
    
    /* 圆角 */
    --auth-radius-xl: 28px;
    --auth-radius-lg: 20px;
    --auth-radius-md: 14px;
    --auth-radius-sm: 10px;
}

/* ==================== CSS 变量（深色模式） ==================== */
[data-auth-theme="dark"] {
    --auth-text: #f1f5f9;
    --auth-text-secondary: #cbd5e1;
    --auth-text-muted: #64748b;
    
    --auth-card-bg: rgba(15, 23, 42, 0.65);
    --auth-card-border: rgba(255, 255, 255, 0.08);
    --auth-card-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3);
    
    --auth-input-bg: rgba(30, 41, 59, 0.7);
    --auth-input-border: rgba(255, 255, 255, 0.1);
    --auth-input-focus: rgba(16, 185, 129, 0.2);
    
    --auth-brand-bg-card: rgba(30, 41, 59, 0.4);
    --auth-brand-border: rgba(255, 255, 255, 0.08);
    --auth-brand-text: #f1f5f9;
    --auth-brand-text-secondary: #94a3b8;
}

/* ==================== 基础重置 ==================== */
.auth-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--auth-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ==================== 纯 CSS 渐变背景 ==================== */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    /* 浅色模式：白 → 极浅绿 → 极浅青 */
    background: 
        radial-gradient(ellipse at 20% 15%, #ecfdf5 0%, transparent 50%),
        radial-gradient(ellipse at 80% 85%, #e0f2fe 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #f0fdf4 0%, transparent 60%),
        linear-gradient(135deg, #ffffff 0%, #f8fffe 50%, #f0f9ff 100%);
    background-attachment: fixed;
    transition: background 0.5s ease;
}

/* 深色模式背景 */
[data-auth-theme="dark"] .auth-bg {
    background: 
        radial-gradient(ellipse at 20% 15%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 85%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(5, 150, 105, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, #020617 0%, #0a1420 50%, #061c1c 100%);
}

/* 装饰光斑 1：大绿色光晕（右上） */
.auth-bg::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.05) 35%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: auth-bg-float-1 25s ease-in-out infinite;
    transition: background 0.5s ease;
}

[data-auth-theme="dark"] .auth-bg::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.08) 35%, transparent 65%);
}

@keyframes auth-bg-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
}

/* 装饰光斑 2：大青色光晕（左下） */
.auth-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.04) 35%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: auth-bg-float-2 30s ease-in-out infinite;
    transition: background 0.5s ease;
}

[data-auth-theme="dark"] .auth-bg::after {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.06) 35%, transparent 65%);
}

@keyframes auth-bg-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.1); }
}

/* ==================== 网格层（科技感） ==================== */
.auth-bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    transition: opacity 0.5s ease;
}

[data-auth-theme="dark"] .auth-bg-grid {
    opacity: 0.25;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.08) 1px, transparent 1px);
}

/* ==================== 主容器 ==================== */
.auth-container {
    display: grid;
    grid-template-columns: 1fr minmax(420px, 520px);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    gap: 40px;
    padding: 0 40px;
}

/* ==================== 左侧品牌区 ==================== */
.auth-brand {
    padding: 48px 20px 48px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--auth-brand-text);
    position: relative;
    width: 100%;
    max-width: none;
}

/* 左上角 Logo 区域（可点击） */
.auth-brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: 6px;
    margin: -6px;
    width: fit-content;
    cursor: pointer;
}

.auth-brand-top:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

[data-auth-theme="dark"] .auth-brand-top:hover {
    background: rgba(30, 41, 59, 0.5);
}

.auth-brand-top:hover .auth-brand-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.auth-brand-top:hover .auth-brand-name h1 {
    color: #10b981;
}

.auth-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

[data-auth-theme="dark"] .auth-brand-logo {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-brand-name h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 2px;
    letter-spacing: -0.3px;
    color: var(--auth-brand-text);
    transition: color 0.3s ease;
}

.auth-brand-name p {
    font-size: 12px;
    color: var(--auth-brand-text-secondary);
    margin: 0;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-brand-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
    color: var(--auth-brand-text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.08);
}

[data-auth-theme="dark"] .auth-brand-badge {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(16, 185, 129, 0.25);
}

.auth-brand-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: auth-badge-pulse 2s ease-in-out infinite;
}

@keyframes auth-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.auth-brand-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -1.2px;
    color: var(--auth-brand-text);
}

.auth-brand-title .gradient-text {
    background: linear-gradient(120deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    font-weight: 900;
    padding-right: 10px;
    margin-right: -10px;
    display: inline-block;
}

.auth-brand-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--auth-brand-text-secondary);
    margin: 0 0 32px;
    max-width: 560px;
    letter-spacing: 0.2px;
}

.auth-brand-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
    padding: 20px 0;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.auth-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--auth-brand-text);
    line-height: 1;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.auth-stat-value .stat-suffix {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

.auth-stat-label {
    font-size: 12px;
    color: var(--auth-brand-text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.auth-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 560px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--auth-brand-bg-card);
    border: 1px solid var(--auth-brand-border);
    border-radius: var(--auth-radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.auth-feature:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.12);
}

[data-auth-theme="dark"] .auth-feature:hover {
    background: rgba(30, 41, 59, 0.6);
}

.auth-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

[data-auth-theme="dark"] .auth-feature-icon {
    background: rgba(15, 23, 42, 0.8);
}

.auth-feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    pointer-events: none;
}

.auth-feature-icon.icon-1 { color: #10b981; }
.auth-feature-icon.icon-2 { color: #0ea5e9; }
.auth-feature-icon.icon-3 { color: #059669; }
.auth-feature-icon.icon-4 { color: #64748b; }

.auth-feature-text h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--auth-brand-text);
    margin: 0 0 2px;
    line-height: 1.3;
}

.auth-feature-text p {
    font-size: 11.5px;
    color: var(--auth-brand-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.auth-brand-footer {
    font-size: 12.5px;
    color: var(--auth-brand-text-secondary);
    line-height: 1.7;
    padding-top: 20px;
}

/* ==================== 右侧表单区 ==================== */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px 40px 0;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius-xl);
    box-shadow: var(--auth-card-shadow);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 44px 40px 36px;
    position: relative;
    animation: auth-card-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

@keyframes auth-card-enter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #6ee7b7 100%);
    border-radius: 0 0 4px 4px;
    opacity: 0.7;
}

.auth-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--auth-radius-xl);
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    transition: background 0.4s ease;
}

[data-auth-theme="dark"] .auth-card::after {
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--auth-text);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.auth-card-header p {
    font-size: 13.5px;
    color: var(--auth-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ==================== 表单元素 ==================== */
.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.auth-input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    font-size: 14px;
    color: var(--auth-text);
    background: var(--auth-input-bg);
    border: 1.5px solid var(--auth-input-border);
    border-radius: var(--auth-radius-sm);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-input-focus);
    background: rgba(255, 255, 255, 1);
}

[data-auth-theme="dark"] .auth-input:focus {
    background: rgba(30, 41, 59, 0.9);
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--auth-primary);
}

.auth-input-password {
    padding-right: 46px;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
    z-index: 2;
    font-size: 16px;
}

.auth-password-toggle:hover {
    background: var(--auth-primary-light);
    color: var(--auth-primary);
}

.auth-input-row {
    display: flex;
    gap: 10px;
}

.auth-input-row .auth-input-wrapper {
    flex: 1;
    min-width: 0;
}

.auth-input-btn {
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-primary);
    background: var(--auth-primary-light);
    border: 1.5px solid var(--auth-primary-soft);
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    height: 48px;
    flex-shrink: 0;
}

.auth-input-btn:hover:not(:disabled) {
    background: var(--auth-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--auth-primary-glow);
    border-color: var(--auth-primary);
}

.auth-input-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-captcha-img {
    height: 48px;
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    border: 1.5px solid var(--auth-input-border);
    transition: all 0.2s;
    flex-shrink: 0;
}

.auth-captcha-img:hover {
    border-color: var(--auth-primary);
}

.auth-form-hint {
    font-size: 11.5px;
    color: var(--auth-text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

.auth-form-error {
    font-size: 11.5px;
    color: var(--auth-danger);
    margin-top: 5px;
    display: none;
    line-height: 1.4;
}

.auth-form-error.show {
    display: block;
}

.auth-input.is-invalid {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 22px;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-link {
    font-size: 13px;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.auth-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
}

.auth-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.auth-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-card-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-input-border);
    font-size: 13.5px;
    color: var(--auth-text-secondary);
}

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

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

/* ==================== ★ 切换账号下拉框 ==================== */
.auth-account-switch {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 3;
    padding: 0;
    font-size: 12px;
}

.auth-account-switch:hover {
    background: var(--auth-primary-light);
    color: var(--auth-primary);
}

.auth-account-switch.active {
    background: var(--auth-primary-light);
    color: var(--auth-primary);
    transform: translateY(-50%) rotate(180deg);
}

/* 用户名输入框留出箭头空间 */
.auth-input-account {
    padding-right: 44px !important;
}

/* 下拉框 */
.auth-account-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 
        0 12px 32px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 6px;
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

[data-auth-theme="dark"] .auth-account-dropdown {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-account-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-account-dropdown::-webkit-scrollbar {
    width: 5px;
}

.auth-account-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* 下拉项 */
.auth-account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.auth-account-item:hover {
    background: #f1f5f9;
}

[data-auth-theme="dark"] .auth-account-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.auth-account-item.current {
    background: rgba(16, 185, 129, 0.08);
}

.auth-account-item.current:hover {
    background: rgba(16, 185, 129, 0.12);
}

.auth-account-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.auth-account-info {
    flex: 1;
    min-width: 0;
}

.auth-account-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-auth-theme="dark"] .auth-account-name {
    color: #f1f5f9;
}

.auth-account-badge {
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 1px 6px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.auth-account-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.3;
}

.auth-account-delete {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
    font-size: 12px;
    opacity: 0;
}

.auth-account-item:hover .auth-account-delete {
    opacity: 1;
}

.auth-account-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 底部分隔线 + 清空按钮 */
.auth-account-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

[data-auth-theme="dark"] .auth-account-divider {
    background: rgba(255, 255, 255, 0.08);
}

.auth-account-clear {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
}

.auth-account-clear:hover {
    background: rgba(239, 68, 68, 0.08);
}

.auth-account-clear i {
    font-size: 13px;
}

/* 空状态 */
.auth-account-empty {
    padding: 20px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.auth-account-empty i {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
    opacity: 0.5;
}

/* ==================== 回到首页按钮（右上角） ==================== */
.auth-home-btn {
    position: fixed;
    top: 24px;
    right: 82px;
    height: 46px;
    padding: 0 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

[data-auth-theme="dark"] .auth-home-btn {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    color: #6ee7b7;
}

.auth-home-btn:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    border-color: #10b981;
}

.auth-home-btn i {
    font-size: 16px;
}

.auth-home-btn .home-text {
    line-height: 1;
}

/* ==================== 主题切换按钮 ==================== */
.auth-theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-size: 19px;
}

[data-auth-theme="dark"] .auth-theme-toggle {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    color: #6ee7b7;
}

.auth-theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.auth-theme-toggle .icon-sun,
.auth-theme-toggle .icon-moon {
    position: absolute;
    transition: all 0.3s;
}

[data-auth-theme="light"] .auth-theme-toggle .icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0);
}

[data-auth-theme="light"] .auth-theme-toggle .icon-sun {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

[data-auth-theme="dark"] .auth-theme-toggle .icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0);
}

[data-auth-theme="dark"] .auth-theme-toggle .icon-moon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

/* ==================== 浮动提示 ==================== */
.auth-floating-alert {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--auth-primary);
    border-radius: var(--auth-radius-sm);
    padding: 14px 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--auth-text);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 440px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-auth-theme="dark"] .auth-floating-alert {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-floating-alert.show {
    transform: translateX(-50%) translateY(0);
}

.auth-floating-alert.success { border-left-color: var(--auth-success); }
.auth-floating-alert.danger { border-left-color: var(--auth-danger); }
.auth-floating-alert.warning { border-left-color: var(--auth-warning); }

.auth-floating-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.auth-floating-alert.success i { color: var(--auth-success); }
.auth-floating-alert.danger i { color: var(--auth-danger); }
.auth-floating-alert.warning i { color: var(--auth-warning); }

/* ==================== 客服悬浮工具栏 ==================== */
.auth-fixed-toolbar {
    position: fixed;
    right: 24px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.auth-toolbar-item {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
}

[data-auth-theme="dark"] .auth-toolbar-item {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-toolbar-item i {
    font-size: 20px;
    color: #10b981;
    transition: all 0.3s ease;
}

.auth-toolbar-item:hover {
    background: #10b981;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    border-color: #10b981;
}

.auth-toolbar-item:hover i {
    color: #ffffff;
}

.auth-toolbar-item.auth-toolbar-online {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
}

.auth-toolbar-item.auth-toolbar-online i {
    color: #ffffff;
}

.auth-toolbar-item.auth-toolbar-online:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.auth-toolbar-online .auth-toolbar-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #ffffff;
    animation: auth-toolbar-pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes auth-toolbar-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
}

.auth-toolbar-popup {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

[data-auth-theme="dark"] .auth-toolbar-popup {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-toolbar-item:hover .auth-toolbar-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.auth-toolbar-popup p {
    margin: 0;
    font-size: 13.5px;
    color: #0f172a;
    line-height: 1.5;
    font-weight: 500;
}

[data-auth-theme="dark"] .auth-toolbar-popup p {
    color: #f1f5f9;
}

.auth-toolbar-popup img {
    width: 140px;
    height: 140px;
    display: block;
    margin-bottom: 8px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
}

.auth-toolbar-popup .popup-hint {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 400;
}

@media (max-width: 992px) {
    .auth-fixed-toolbar {
        right: 16px;
        bottom: 90px;
        gap: 10px;
    }
    .auth-toolbar-item {
        width: 42px;
        height: 42px;
    }
    .auth-toolbar-item i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .auth-fixed-toolbar {
        right: 12px;
        bottom: 80px;
        gap: 8px;
    }
    .auth-toolbar-item {
        width: 38px;
        height: 38px;
    }
    .auth-toolbar-item i {
        font-size: 16px;
    }
    .auth-toolbar-popup {
        right: 50px;
        padding: 10px 14px;
    }
    .auth-toolbar-popup img {
        width: 100px;
        height: 100px;
    }
    .auth-toolbar-popup p {
        font-size: 12px;
    }
}

/* ==================== 响应式 ==================== */
@media (max-width: 1280px) {
    .auth-container {
        grid-template-columns: 1fr minmax(400px, 460px);
        gap: 30px;
        padding: 0 30px;
    }
    .auth-brand {
        padding: 48px 20px 48px 40px;
    }
    .auth-brand-title {
        font-size: 38px;
    }
    .auth-form-side {
        padding: 40px 40px 40px 0;
    }
}

@media (max-width: 1100px) {
    .auth-container {
        grid-template-columns: 1fr minmax(380px, 440px);
    }
    .auth-brand-title {
        font-size: 34px;
    }
    .auth-brand-stats {
        gap: 24px;
    }
    .auth-stat-value {
        font-size: 24px;
    }
    .auth-features {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }
    
    .auth-brand {
        padding: 40px 30px 20px;
        min-height: auto;
        justify-content: center;
    }
    
    .auth-brand-main {
        padding: 20px 0;
    }
    
    .auth-brand-badge {
        margin-bottom: 14px;
        font-size: 11.5px;
        padding: 5px 12px;
    }
    
    .auth-brand-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .auth-brand-desc {
        font-size: 13.5px;
        margin-bottom: 20px;
    }
    
    .auth-brand-stats {
        gap: 24px;
        margin-bottom: 24px;
        padding: 14px 0;
        flex-wrap: wrap;
    }
    
    .auth-stat-value {
        font-size: 22px;
    }
    
    .auth-stat-label {
        font-size: 11px;
    }
    
    .auth-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .auth-feature {
        padding: 12px 14px;
    }
    
    .auth-feature-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .auth-feature-text h4 {
        font-size: 12.5px;
    }
    
    .auth-feature-text p {
        font-size: 11px;
    }
    
    .auth-brand-footer {
        text-align: center;
        padding-top: 16px;
        font-size: 11.5px;
    }
    
    .auth-form-side {
        padding: 20px;
        justify-content: center;
    }
    
    .auth-card {
        max-width: 460px;
        padding: 36px 32px 30px;
    }
}

@media (max-width: 576px) {
    .auth-brand {
        padding: 28px 20px 16px;
    }
    
    .auth-brand-logo {
        width: 42px;
        height: 42px;
        padding: 6px;
        border-radius: 11px;
    }
    
    .auth-brand-name h1 {
        font-size: 19px;
    }
    
    .auth-brand-name p {
        font-size: 10.5px;
    }
    
    .auth-brand-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .auth-brand-title {
        font-size: 23px;
    }
    
    .auth-brand-desc {
        font-size: 12.5px;
        line-height: 1.7;
    }
    
    .auth-brand-stats {
        gap: 18px;
    }
    
    .auth-stat-value {
        font-size: 19px;
    }
    
    .auth-stat-value .stat-suffix {
        font-size: 13px;
    }
    
    .auth-stat-label {
        font-size: 10px;
    }
    
    .auth-features {
        grid-template-columns: 1fr;
    }
    
    .auth-feature {
        padding: 10px 12px;
    }
    
    .auth-card {
        padding: 28px 22px 24px;
        border-radius: var(--auth-radius-lg);
    }
    
    .auth-card::before {
        left: 20px;
        right: 20px;
    }
    
    .auth-card-header h2 {
        font-size: 22px;
    }
    
    .auth-card-header p {
        font-size: 12.5px;
    }
    
    .auth-theme-toggle {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .auth-home-btn {
        right: 66px;
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }
    
    .auth-home-btn .home-text {
        display: none;
    }
    
    .auth-home-btn i {
        font-size: 17px;
    }
    
    .auth-input-btn {
        padding: 0 12px;
        font-size: 12px;
        height: 46px;
    }
    
    .auth-input {
        padding: 12px 12px 12px 40px;
        font-size: 13.5px;
    }
    
    .auth-submit-btn {
        padding: 14px 18px;
        font-size: 14.5px;
    }
}

@media (min-width: 1400px) {
    .auth-container {
        padding: 0 80px;
    }
    
    .auth-brand {
        padding-left: 80px;
    }
    
    .auth-form-side {
        padding-right: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}