/* ==========================================================================
   宝之通增长中台 · pages-login.css — 登录 / 错误页 — 从 app.css 拆出
   --------------------------------------------------------------------------
   由 scripts/css_split_app.py 自动从 app.css 拆出。
   包含章节：[pages-login-error]
   ========================================================================== */

/* === [pages-login-error] .login-page / .login-shell / .login-form / .btn-login / .error-card === */
.login-page,
.error-page {
    /* 品牌冷调渐变底 + 两团光晕，登录第一眼即有品牌识别度 */
    background:
        radial-gradient(640px 420px at 12% -8%, rgba(59, 130, 246, 0.14), transparent 65%),
        radial-gradient(720px 480px at 96% 108%, rgba(79, 70, 229, 0.12), transparent 65%),
        linear-gradient(160deg, #eef3fb 0%, #f6f8fd 50%, #eef1fa 100%) !important;
}

.login-page .min-vh-100 { padding: 16px; }

.topbar-notif-panel {
    width: 340px;
    max-height: 400px;
    overflow-y: auto;
}

.toast-host { z-index: 9999; }

.error-shell { width: min(100%, 720px); padding: 16px; }

.error-card {
    padding: 28px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.error-status {
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-kicker {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.error-card h1 {
    margin: 8px 0 12px;
    color: var(--text-main);
    font-size: 1.95rem;
    line-height: 1.2;
    font-weight: 700;
}

.error-detail {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.75;
}

.error-hint {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.login-shell {
    width: min(1100px, calc(100vw - 32px));
    min-height: min(600px, calc(100vh - 64px));
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    overflow: hidden;
    border: 1px solid rgba(228, 233, 241, 0.9);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.login-intel-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 3vw, 40px);
    color: var(--text-main);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border-right: 1px solid var(--surface-border);
}

/* 左侧品牌区：右上角一抹品牌光晕 + 细网格纹理，增加质感 */
.login-intel-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(420px 280px at 88% -10%, rgba(59, 130, 246, 0.10), transparent 70%),
        repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.018) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.018) 0 1px, transparent 1px 28px);
    pointer-events: none;
}

.login-intel-panel > * { position: relative; z-index: 1; }

.login-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.login-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.login-brand-mark i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--surface);
    background: var(--brand-gradient);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.login-env {
    padding: 4px 10px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.eyebrow,
.login-eyebrow {
    display: inline-block;
    width: fit-content;
    margin-bottom: 14px;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.login-intel-panel h1 {
    max-width: 520px;
    margin: 0 0 14px;
    color: var(--text-main);
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 600;
}

.login-intel-panel p {
    max-width: 500px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.login-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--surface-border);
}

.login-flow-step { min-width: 0; }

.login-flow-step i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(147, 197, 253, 0.5);
}

.login-flow-step strong {
    display: block;
    color: var(--text-main);
    font-size: 0.86rem;
    line-height: 1.3;
}

.login-flow-step span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 3.5vw, 48px) clamp(28px, 3vw, 44px);
    background: var(--surface);
}

.login-form-header { margin-bottom: 28px; }

.login-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.login-form-kicker i { color: var(--accent); }

.login-form-header h2 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 600;
}

.login-form-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.login-field { margin-bottom: 16px; }

.login-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
}

.login-field label i { color: var(--accent); }

.login-field .form-control { min-height: 44px !important; font-size: 0.95rem; }

.btn-login {
    width: 100%;
    min-height: 46px !important;
    margin-top: 6px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    color: var(--surface);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
    transition: box-shadow var(--motion-base) var(--easing), transform var(--motion-fast) var(--easing), filter var(--motion-base) var(--easing);
}

.btn-login:hover,
.btn-login:focus {
    color: var(--surface);
    filter: brightness(1.06);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.42);
    transform: translateY(-1px);
}
.btn-login:active { transform: translateY(0); }

.login-support {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.account-shell {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-card { max-width: 560px; margin-inline: auto; }
.account-card-compact { width: min(100%, 420px); }


