/* =============================================================
 *  三大后台登录页统一美化样式
 *  设计语言：高端科技 + 玻璃拟态 + 渐变光晕
 *  三段响应式：移动 (<768) / 平板 (768-1024) / 桌面 (≥1024)
 *  配色：每个后台使用不同的强调色，但整体结构统一
 * ============================================================= */

/* ========== CSS 自定义属性（默认主题：admin 翡翠绿） ========== */
:root {
    /* admin */
    --auth-bg-grad-1: #0B1220;
    --auth-bg-grad-2: #0F172A;
    --auth-bg-grad-3: #064E3B;
    --auth-accent: #10B981;
    --auth-accent-light: #34D399;
    --auth-accent-dark: #047857;
    --auth-accent-glow: rgba(16, 185, 129, 0.35);
    --auth-glow-1: rgba(16, 185, 129, 0.18);
    --auth-glow-2: rgba(59, 130, 246, 0.16);
    --auth-glow-3: rgba(168, 85, 247, 0.14);

    /* 通用 */
    --auth-form-bg: #F8FAFC;
    --auth-form-card: #FFFFFF;
    --auth-text-strong: #0F172A;
    --auth-text: #1E293B;
    --auth-text-muted: #64748B;
    --auth-text-faint: #94A3B8;
    --auth-border: #E2E8F0;
    --auth-border-strong: #CBD5E1;
    --auth-input-bg: #FFFFFF;
    --auth-input-bg-focus: #FFFFFF;
    --auth-radius-sm: 8px;
    --auth-radius: 12px;
    --auth-radius-lg: 18px;
    --auth-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
    --auth-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --auth-shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
    --auth-font-display: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
    --auth-font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
    --auth-transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 主题变体 ========== */
/* Agent 主题：琥珀金 + 深靛蓝 */
body.auth-theme-agent {
    --auth-bg-grad-1: #14102B;
    --auth-bg-grad-2: #1E1B4B;
    --auth-bg-grad-3: #78350F;
    --auth-accent: #F59E0B;
    --auth-accent-light: #FBBF24;
    --auth-accent-dark: #D97706;
    --auth-accent-glow: rgba(245, 158, 11, 0.32);
    --auth-glow-1: rgba(245, 158, 11, 0.18);
    --auth-glow-2: rgba(217, 70, 239, 0.14);
    --auth-glow-3: rgba(59, 130, 246, 0.14);
}

/* User 主题：青色 + 深蓝 */
body.auth-theme-user {
    --auth-bg-grad-1: #061325;
    --auth-bg-grad-2: #082F49;
    --auth-bg-grad-3: #155E75;
    --auth-accent: #22D3EE;
    --auth-accent-light: #67E8F9;
    --auth-accent-dark: #0891B2;
    --auth-accent-glow: rgba(34, 211, 238, 0.32);
    --auth-glow-1: rgba(34, 211, 238, 0.18);
    --auth-glow-2: rgba(99, 102, 241, 0.16);
    --auth-glow-3: rgba(168, 85, 247, 0.14);
}

/* ========== 全局基础 ========== */
body.auth-portal-page {
    margin: 0;
    padding: 0;
    font-family: var(--auth-font-body);
    color: var(--auth-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--auth-form-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

* { box-sizing: border-box; }

/* 隐藏旧的侧边栏（保留结构兼容原主题切换） */
body.auth-portal-page .left-side-menu,
body.auth-portal-page #left-side-menu-element,
body.auth-portal-page .auth-mobile-topbar,
body.auth-portal-page .auth-menu-overlay,
body.auth-portal-page .auth-topbar-theme-btn,
body.auth-portal-page #auth-theme-overlay,
body.auth-portal-page #auth-theme-panel,
body.auth-portal-page .auth-theme-fab-wrap {
    display: none !important;
}

/* 兼容旧的主题切换浮窗——但隐藏，因为本设计自带 */
body.auth-portal-page .auth-theme-fab-pc,
body.auth-portal-page .auth-theme-fab-wrap { display: none !important; }

/* ========== 主容器 ========== */
.auth-stage {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: var(--auth-form-bg);
}

/* ========== 左侧品牌面板 ========== */
.auth-brand {
    position: relative;
    flex: 0 0 46%;
    max-width: 46%;
    background:
        radial-gradient(ellipse at 20% 10%, var(--auth-glow-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, var(--auth-glow-2) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 50%, var(--auth-glow-3) 0%, transparent 60%),
        linear-gradient(135deg, var(--auth-bg-grad-1) 0%, var(--auth-bg-grad-2) 60%, var(--auth-bg-grad-3) 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 56px 40px;
    isolation: isolate;
}

.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--auth-accent-glow) 0%, transparent 70%);
    top: -160px;
    right: -160px;
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
    animation: authBrandFloat 18s ease-in-out infinite;
}

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

.auth-brand > * { position: relative; z-index: 1; }

/* 品牌头部 */
.auth-brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--auth-accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.auth-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

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

.auth-brand-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-brand-title-main {
    font-family: var(--auth-font-display);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.auth-brand-title-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* 品牌主标语 */
.auth-brand-hero {
    margin-top: auto;
    margin-bottom: auto;
    padding: 40px 0;
}

.auth-brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.auth-brand-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--auth-accent-light);
    box-shadow: 0 0 8px var(--auth-accent-light);
    animation: authPulse 2s ease-in-out infinite;
}

@keyframes authPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.auth-brand-headline {
    font-family: var(--auth-font-display);
    font-size: 38px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 18px;
}

.auth-brand-headline .accent {
    background: linear-gradient(120deg, var(--auth-accent-light) 0%, var(--auth-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.auth-brand-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 440px;
    margin: 0 0 36px;
}

/* 特性列表 */
.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    transition: all var(--auth-transition-fast);
}

.auth-feature:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--auth-accent-glow);
}

.auth-feature-icon svg { width: 20px; height: 20px; color: #fff; }

.auth-feature-text {
    flex: 1;
    min-width: 0;
}

.auth-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.4;
}

.auth-feature-desc {
    font-size: 12.5px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

/* 品牌底部 */
.auth-brand-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 16px;
    flex-wrap: wrap;
}

.auth-brand-foot-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

.auth-brand-foot-meta b { color: rgba(255,255,255,0.85); font-weight: 500; }

.auth-brand-foot-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-brand-foot-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color var(--auth-transition-fast);
}

.auth-brand-foot-links a:hover { color: var(--auth-accent-light); }
.auth-brand-foot-links svg { width: 14px; height: 14px; }

/* ========== 右侧表单区域 ========== */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    background: var(--auth-form-bg);
    position: relative;
    overflow-y: auto;
}

.auth-form-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, var(--auth-glow-1) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, var(--auth-glow-2) 0%, transparent 35%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.auth-form-inner {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: authFormIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes authFormIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 移动端品牌头（仅移动/平板显示） */
.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--auth-bg-grad-1) 0%, var(--auth-bg-grad-2) 100%);
    border-radius: var(--auth-radius);
    color: #fff;
    box-shadow: var(--auth-shadow);
}

.auth-mobile-brand .auth-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 11px;
}

.auth-mobile-brand .auth-brand-logo svg { width: 22px; height: 22px; }

.auth-mobile-brand-text {
    flex: 1;
    min-width: 0;
}

.auth-mobile-brand-text-main {
    font-family: var(--auth-font-display);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-mobile-brand-text-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.6);
    margin: 2px 0 0;
    letter-spacing: 0.04em;
}

/* 表单头部 */
.auth-form-head {
    margin-bottom: 28px;
}

.auth-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--auth-accent-glow);
    color: var(--auth-accent-dark);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.auth-form-eyebrow svg { width: 13px; height: 13px; }

.auth-form-title {
    font-family: var(--auth-font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--auth-text-strong);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.auth-form-subtitle {
    font-size: 14.5px;
    color: var(--auth-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* 表单元素 */
.auth-form { width: 100%; }

.auth-field { margin-bottom: 18px; }

.auth-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-field-label-link {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--auth-accent);
    text-decoration: none;
    transition: color var(--auth-transition-fast);
}

.auth-field-label-link:hover { color: var(--auth-accent-dark); text-decoration: underline; }

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--auth-input-bg);
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    transition: all var(--auth-transition-fast);
    overflow: hidden;
}

.auth-input-wrap:hover {
    border-color: var(--auth-border-strong);
}

.auth-input-wrap.is-focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px var(--auth-accent-glow);
    background: var(--auth-input-bg-focus);
}

.auth-input-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    color: var(--auth-text-faint);
    transition: color var(--auth-transition-fast);
}

.auth-input-wrap.is-focus .auth-input-icon { color: var(--auth-accent); }

.auth-input-icon svg { width: 18px; height: 18px; }

.auth-input {
    flex: 1;
    width: 100%;
    height: 48px;
    padding: 0 14px 0 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--auth-text-strong);
    letter-spacing: 0.01em;
}

.auth-input::placeholder {
    color: var(--auth-text-faint);
    font-weight: 400;
}

.auth-input-affix {
    flex: 0 0 auto;
    padding-right: 12px;
    color: var(--auth-text-faint);
    cursor: pointer;
    transition: color var(--auth-transition-fast);
    display: flex;
    align-items: center;
    height: 100%;
}

.auth-input-affix:hover { color: var(--auth-accent); }
.auth-input-affix svg { width: 18px; height: 18px; }

.auth-input-affix.is-visible { color: var(--auth-accent); }

/* 输入组（带验证码按钮） */
.auth-input-group {
    display: flex;
    gap: 8px;
}

.auth-input-group .auth-input-wrap { flex: 1; }

.auth-input-group .auth-suffix-btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-form-card);
    color: var(--auth-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--auth-transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-input-group .auth-suffix-btn:hover:not(:disabled) {
    background: var(--auth-accent);
    color: #fff;
    border-color: var(--auth-accent);
}

.auth-input-group .auth-suffix-btn:disabled {
    color: var(--auth-text-faint);
    background: var(--auth-form-bg);
    cursor: not-allowed;
    border-color: var(--auth-border);
}

/* 复选框 */
.auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--auth-text-muted);
    line-height: 1.4;
}

.auth-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--auth-border-strong);
    border-radius: 4px;
    background: var(--auth-form-card);
    cursor: pointer;
    position: relative;
    transition: all var(--auth-transition-fast);
    flex-shrink: 0;
}

.auth-check input[type="checkbox"]:hover { border-color: var(--auth-accent); }
.auth-check input[type="checkbox"]:checked {
    background: var(--auth-accent);
    border-color: var(--auth-accent);
}
.auth-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-check a { color: var(--auth-accent); text-decoration: none; font-weight: 500; }
.auth-check a:hover { text-decoration: underline; }

.auth-forgot-link {
    font-size: 13px;
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--auth-transition-fast);
}
.auth-forgot-link:hover { color: var(--auth-accent-dark); text-decoration: underline; }

/* 提交按钮 */
.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: var(--auth-radius-sm);
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-light) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px var(--auth-accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all var(--auth-transition-fast);
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px var(--auth-accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

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

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.auth-submit svg { width: 18px; height: 18px; transition: transform var(--auth-transition-fast); }
.auth-submit:hover:not(:disabled) svg { transform: translateX(3px); }

.auth-submit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.auth-submit:active::after { width: 300px; height: 300px; }

/* 分割线 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--auth-text-faint);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* 第三方登录 */
.auth-thirdparty {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.auth-thirdparty-btn {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--auth-form-card);
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    color: var(--auth-text);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--auth-transition-fast);
}

.auth-thirdparty-btn:hover {
    border-color: var(--auth-accent);
    color: var(--auth-accent);
    background: var(--auth-form-card);
    transform: translateY(-1px);
    box-shadow: var(--auth-shadow-sm);
}

.auth-thirdparty-btn svg { width: 18px; height: 18px; }
.auth-thirdparty-btn-text { display: none; }

@media (min-width: 1024px) {
    .auth-thirdparty-btn-text { display: inline; }
}

/* 表单底部链接 */
.auth-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    font-size: 13px;
    color: var(--auth-text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.auth-form-foot a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--auth-transition-fast);
}

.auth-form-foot a:hover { color: var(--auth-accent-dark); text-decoration: underline; }

.auth-form-foot .dot { color: var(--auth-text-faint); margin: 0 2px; }

/* 标签切换（账号/邮箱） */
.auth-tabs {
    display: inline-flex;
    background: var(--auth-form-card);
    border: 1.5px solid var(--auth-border);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 24px;
    position: relative;
}

.auth-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    transition: color var(--auth-transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.auth-tab svg { width: 14px; height: 14px; }

.auth-tab.is-active {
    color: #fff;
}

.auth-tabs::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: var(--auth-tab-width, 0);
    left: var(--auth-tab-left, 0);
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-light) 100%);
    border-radius: 999px;
    z-index: 0;
    transition: all var(--auth-transition);
    box-shadow: 0 4px 12px var(--auth-accent-glow);
}

.auth-tab.is-active { color: #fff; }
.auth-tab:not(.is-active) { color: var(--auth-text-muted); }

/* 版权 / 备案 */
.auth-copyright {
    margin-top: 32px;
    text-align: center;
    color: var(--auth-text-faint);
    font-size: 12px;
    line-height: 1.8;
}

.auth-copyright a { color: var(--auth-text-muted); text-decoration: none; }
.auth-copyright a:hover { color: var(--auth-accent); }

.auth-copyright-beian {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 14px;
    margin-top: 6px;
}

.auth-copyright-beian a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-copyright-beian svg { width: 12px; height: 12px; }

/* 安全验证弹窗（替换原 Vue 弹窗） */
.auth-verify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    animation: authFadeIn 0.25s ease-out;
}

.auth-verify-overlay.is-open { display: flex; }

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-verify-card {
    width: 100%;
    max-width: 420px;
    background: var(--auth-form-card);
    border-radius: var(--auth-radius-lg);
    box-shadow: var(--auth-shadow-lg);
    overflow: hidden;
    animation: authVerifyIn 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authVerifyIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-verify-head {
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.auth-verify-head-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-verify-head-icon svg { width: 22px; height: 22px; color: #fff; }

.auth-verify-head-text { flex: 1; }
.auth-verify-head-text h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.auth-verify-head-text p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,0.85); }

.auth-verify-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--auth-transition-fast);
}

.auth-verify-close:hover { background: rgba(255,255,255,0.25); }
.auth-verify-close svg { width: 16px; height: 16px; }

.auth-verify-body { padding: 24px; }

.auth-verify-msg {
    color: var(--auth-text);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.auth-verify-email {
    color: var(--auth-accent);
    font-weight: 600;
    margin: 0 0 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-verify-email svg { width: 14px; height: 14px; }

/* 验证码弹窗内的输入 */
.auth-verify-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-verify-input-row .auth-input-wrap { flex: 1; }
.auth-verify-input-row .auth-suffix-btn {
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-form-card);
    color: var(--auth-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--auth-transition-fast);
}

.auth-verify-input-row .auth-suffix-btn:hover:not(:disabled) {
    background: var(--auth-accent);
    color: #fff;
    border-color: var(--auth-accent);
}

.auth-verify-input-row .auth-suffix-btn:disabled {
    color: var(--auth-text-faint);
    background: var(--auth-form-bg);
    border-color: var(--auth-border);
    cursor: not-allowed;
}

.auth-verify-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: var(--auth-radius-sm);
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-light) 100%);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--auth-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--auth-accent-glow);
}

.auth-verify-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--auth-accent-glow);
}

.auth-verify-submit svg { width: 16px; height: 16px; }

/* ========== 响应式：三段 ========== */

/* 平板：768px - 1023px */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .auth-stage {
        flex-direction: column;
        min-height: 100vh;
    }

    .auth-brand {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 32px 36px 28px;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .auth-brand::after {
        width: 320px;
        height: 320px;
        top: -100px;
        right: -100px;
    }

    .auth-brand-head { flex: 0 0 auto; }

    .auth-brand-hero {
        margin: 0;
        padding: 0;
        flex: 1;
    }

    .auth-brand-headline {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .auth-brand-desc { display: none; }

    .auth-brand-eyebrow { display: none; }

    .auth-brand-features {
        display: none;
    }

    .auth-brand-foot { display: none; }

    .auth-form-side {
        padding: 40px 32px;
        min-height: 0;
        flex: 1;
    }

    .auth-form-inner { max-width: 480px; }

    .auth-mobile-brand { display: none; }

    .auth-form-title { font-size: 28px; }
}

/* 移动：< 768px */
@media (max-width: 767.98px) {
    .auth-stage { flex-direction: column; min-height: 100vh; }

    .auth-brand { display: none; }

    .auth-form-side {
        padding: 20px 18px 28px;
        align-items: flex-start;
        min-height: 100vh;
    }

    .auth-form-inner { max-width: 100%; }

    .auth-mobile-brand { display: flex; }

    .auth-form-title { font-size: 26px; }

    .auth-form-head { margin-bottom: 22px; }

    .auth-thirdparty { grid-template-columns: repeat(3, 1fr); }

    .auth-thirdparty-btn-text { display: none; }

    .auth-copyright { font-size: 11.5px; }
}

/* 桌面：>= 1024px */
@media (min-width: 1024px) {
    .auth-form-side { padding: 40px 64px; }
    .auth-form-inner { max-width: 460px; }

    .auth-brand-headline { font-size: 42px; }
}

/* 大屏：>= 1440px */
@media (min-width: 1440px) {
    .auth-brand { flex: 0 0 48%; max-width: 48%; padding: 64px 72px 48px; }
    .auth-form-side { padding: 40px 80px; }
    .auth-form-inner { max-width: 480px; }

    .auth-brand-headline { font-size: 46px; }
}

/* 打印隐藏 */
@media print {
    .auth-stage { display: none; }
}
