/* ============================================================
   login-theme.css — 管理端登录页（品牌渐变 + 玻璃拟态）
   ------------------------------------------------------------
   设计意图：
   - 大面积品牌渐变主视觉压住画面，极光光斑缓慢流动，制造纵深
   - 右侧登录卡改为深色毛玻璃（backdrop-filter），高光描边 + 内阴影
   - 左区放大字号与留白，形成「品牌主张 → 能力说明」的阅读节奏
   仅登录页使用，不影响其他页面。所有色值与 brand-unify.css 品牌蓝 #2f6bff 对齐
   ============================================================ */

:root {
    --lg-brand: #2f6bff;
    --lg-brand-strong: #1e4fd8;
    --lg-accent: #35d3e0;
    --lg-ink: #eaf2ff;
    --lg-muted: #9fb3d6;
    --lg-line: rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body { background: #050b1d; }

/* ---------- 背景层：点阵世界地图 + 品牌深蓝 + 光束 + 网格 + 缓动光晕 ---------- */
.login-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background:
        /* 1. 点阵世界地图（SVG 自带四周淡出遮罩与连接弧线动画） */
        url("../images/login-world-map.svg") center 46% / cover no-repeat,
        /* 2. 压暗层：保证地图不抢左区文字，也让玻璃卡对比更稳 */
        linear-gradient(148deg, rgba(4, 9, 26, .58) 0%, rgba(4, 9, 26, .30) 55%, rgba(4, 9, 26, .56) 100%),
        /* 3. 品牌蓝主光斑 */
        radial-gradient(1080px 640px at 80% -10%, rgba(47, 107, 255, .40), transparent 62%),
        radial-gradient(860px 520px at -10% 104%, rgba(26, 92, 205, .22), transparent 66%),
        /* 4. 斜向扫光 */
        linear-gradient(118deg, transparent 40%, rgba(126, 176, 255, .05) 50%, transparent 60%),
        /* 5. 底色 */
        linear-gradient(148deg, #04091a 0%, #071533 42%, #0a1f45 70%, #0b2550 100%);
}

/* 网格线：更细、更淡，只在中部显现 */
.login-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(120, 168, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 168, 255, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 84% 74% at 52% 42%, #000 24%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 84% 74% at 52% 42%, #000 24%, transparent 72%);
}

/* 光晕：只保留品牌蓝，低透明度缓慢漂移，避免脏色 */
.login-bg::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: -18%;
    top: -26%;
    width: 136%;
    height: 136%;
    background:
        radial-gradient(circle at 32% 36%, rgba(74, 131, 255, .18), transparent 48%),
        radial-gradient(circle at 74% 68%, rgba(47, 107, 255, .13), transparent 50%);
    filter: blur(46px);
    animation: lgAurora 30s ease-in-out infinite alternate;
}
@keyframes lgAurora {
    0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    50%  { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); }
    100% { transform: translate3d(-1%, 2.5%, 0) scale(1.02); }
}

/* 底部暗角，让内容更收拢 */
.login-bg .bg-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(3, 8, 22, .55) 100%);
    pointer-events: none;
}

/* 漂浮光点 */
.login-dot {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    background: rgba(120, 170, 255, .55);
    box-shadow: 0 0 12px rgba(120, 170, 255, .8);
    animation: floatUp linear infinite;
    opacity: .5;
}
@keyframes floatUp {
    0%   { transform: translateY(12vh) scale(.7); opacity: 0; }
    15%  { opacity: .55; }
    85%  { opacity: .4; }
    100% { transform: translateY(-88vh) scale(1.1); opacity: 0; }
}

/* ---------- 布局：左品牌 / 右玻璃卡 ---------- */
.login-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 424px;
    align-items: center;
    gap: 96px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 6vw;
}

/* ---------- 左侧品牌区 ---------- */
.login-brand {
    color: var(--lg-ink);
    max-width: 560px;
    animation: lgRise .7s cubic-bezier(.22, .8, .3, 1) both;
}

/* 品牌标识：玻璃底座托住白色 Logo，避免白色图形在深底上「发糊」 */
.login-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}
.login-brand .brand-logo-badge {
    flex: none;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .04));
    box-shadow:
        0 12px 28px rgba(2, 8, 30, .48),
        inset 0 1px 0 rgba(255, 255, 255, .30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.login-brand .brand-logo-badge img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 2px 7px rgba(120, 170, 255, .55));
}
.login-brand .brand-lockup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.login-brand .brand-lockup strong {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .6px;
    color: #eef4ff;
}
.login-brand .brand-lockup small {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #8fb4ff;
}
/* 运行状态点，替代原先独立的状态胶囊 */
.login-brand .brand-lockup small::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #43d08a;
    box-shadow: 0 0 8px #43d08a;
    animation: blink 2.2s infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.login-brand h1 {
    margin: 0 0 22px;
    font-size: clamp(38px, 3.6vw, 56px);
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: -.6px;
    text-shadow: 0 8px 40px rgba(47, 107, 255, .28);
}
.login-brand h1 em {
    display: inline-block;
    margin-top: 8px;
    font-style: normal;
    font-size: .58em;
    font-weight: 600;
    letter-spacing: 0;
    background: linear-gradient(92deg, #7fb0ff 0%, #4fd8e2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-brand p.desc {
    margin: 0 0 34px;
    max-width: 500px;
    color: var(--lg-muted);
    font-size: 14.5px;
    line-height: 1.95;
}

.login-feats { display: flex; flex-direction: column; gap: 12px; }
.login-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    color: #cfdcf4;
    font-size: 13.5px;
    line-height: 1.6;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(100deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    transition: border-color .2s, transform .2s, background .2s;
}
.login-feat:hover {
    border-color: rgba(110, 168, 255, .34);
    background: linear-gradient(100deg, rgba(47, 107, 255, .16), rgba(255, 255, 255, .02));
    transform: translateX(3px);
}
.login-feat .fi {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(47, 107, 255, .30), rgba(47, 107, 255, .08));
    border: 1px solid rgba(110, 168, 255, .28);
    color: #9dc0ff;
}

/* 能力标签 */
.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.brand-chips span {
    font-size: 12px;
    color: #93a9cd;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .04);
}

/* ---------- 右侧登录卡：深色毛玻璃 ---------- */
.login-card {
    position: relative;
    width: 424px;
    max-width: 94vw;
    padding: 40px 38px 26px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(160deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .055) 100%);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow:
        0 32px 90px rgba(2, 8, 30, .60),
        0 2px 0 rgba(255, 255, 255, .06),
        inset 0 1px 0 rgba(255, 255, 255, .26),
        inset 0 -1px 0 rgba(255, 255, 255, .06);
    animation: lgRise .8s cubic-bezier(.22, .8, .3, 1) .1s both;
}
/* 顶部品牌渐变细线 */
.login-card::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 176, 255, .9), rgba(79, 216, 226, .7), transparent);
}
@keyframes lgRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card .card-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.2px;
    color: #ffffff;
}
.login-card .card-sub {
    margin: 0 0 28px;
    font-size: 12.5px;
    letter-spacing: .4px;
    color: #9fb0cd;
}

/* 表单 */
.login-field { margin-bottom: 16px; }
.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .3px;
    color: #b6c7e6;
}
.login-input-wrap {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.login-input-wrap:hover { border-color: rgba(255, 255, 255, .22); }
.login-input-wrap:focus-within {
    border-color: rgba(110, 168, 255, .8);
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, .16), inset 0 0 22px rgba(47, 107, 255, .10);
}
.login-input-wrap .ficon {
    flex: none;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8ba3c9;
    transition: color .18s;
}
.login-input-wrap:focus-within .ficon { color: #7fb0ff; }
.login-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--lg-ink);
    padding-right: 12px;
    caret-color: #7fb0ff;
}
.login-input-wrap input::placeholder { color: rgba(176, 196, 226, .42); }
/* Chrome 自动填充背景修正 */
.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #eaf2ff;
    -webkit-box-shadow: 0 0 0 1000px rgba(20, 34, 62, .9) inset;
    transition: background-color 9999s ease-out 0s;
}

/* 验证码行 */
.login-captcha .code-img {
    flex: none;
    display: block;
    height: 34px;
    border-radius: 7px;
    background: #fff;
}
.login-captcha .code-img-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}
.login-captcha .code-img-btn:focus-visible {
    outline: 2px solid #7fb0ff;
    outline-offset: 3px;
}
.login-captcha input { padding-right: 8px; }

/* 错误提示 */
.login-error {
    min-height: 20px;
    margin: 2px 0 6px;
    font-size: 12.5px;
    text-align: center;
    color: #ff8f8f;
}

/* 协议 */
.login-agree {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: #a8bad8;
}
.login-agree input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--lg-brand);
    cursor: pointer;
}
.login-agree a {
    color: #8fbcff;
    text-decoration: none;
    cursor: pointer;
}
.login-agree a:hover { color: #b8d3ff; text-decoration: underline; }

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #4a83ff 0%, #2f6bff 45%, #1f4fd6 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 5px;
    text-indent: 5px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(47, 107, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .14s, box-shadow .18s, filter .18s;
}
.login-btn:hover {
    filter: brightness(1.07);
    box-shadow: 0 18px 42px rgba(47, 107, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.login-btn:active { transform: translateY(1px); }
.login-btn:focus-visible { outline: 2px solid #9dc0ff; outline-offset: 3px; }
.login-btn[disabled] { opacity: .6; cursor: not-allowed; box-shadow: none; }

.login-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(178, 194, 220, .55);
}
.login-foot a { color: rgba(190, 208, 236, .72); text-decoration: none; }
.login-foot a:hover { color: #8fbcff; }

/* ---------- 协议弹窗 ---------- */
.protest-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 12, 32, .66);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
}
.protest-mask.show { display: flex; }
.protest-panel {
    width: 470px;
    max-width: 92vw;
    max-height: 78vh;
    background: #fff;
    border-radius: 16px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(2, 8, 30, .6);
}
.protest-panel h3 { margin: 0 0 12px; font-size: 16px; color: #17233d; text-align: center; }
.protest-panel .p-body {
    overflow-y: auto;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.9;
    border-top: 1px solid #edf0f5;
    padding-top: 10px;
}
.protest-panel .p-btn {
    margin-top: 16px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--lg-brand);
    color: #fff;
    font-size: 13.5px;
    cursor: pointer;
}
.protest-panel .p-btn:hover { background: #2559db; }

/* ---------- 入驻支付弹窗（-9，沿用旧片段，仅做外壳统一） ---------- */
.paywrap-mask {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(5, 12, 32, .66);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
}
.paywrap-mask.show { display: flex; }
.paywrap-panel {
    width: 520px;
    max-width: 94vw;
    max-height: 82vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(2, 8, 30, .6);
}
.paywrap-panel .pw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #edf0f5;
    font-size: 15px;
    font-weight: 600;
    color: #17233d;
}
.paywrap-panel .pw-head .pw-close {
    cursor: pointer;
    color: #8a94a6;
    font-size: 18px;
    line-height: 1;
    border: 0;
    background: none;
}
.paywrap-panel .pw-head .pw-close:hover { color: #e5484d; }
.paywrap-panel .pw-body { overflow-y: auto; padding: 6px 18px; }
.paywrap-panel .pw-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #edf0f5;
    background: #fafbfd;
}
.paywrap-panel .pw-foot button {
    height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #dfe3ea;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}
.paywrap-panel .pw-foot button.primary {
    background: var(--lg-brand);
    border-color: var(--lg-brand);
    color: #fff;
}
.paywrap-panel .pw-foot button.primary:hover { background: #2559db; }

/* 弹窗内旧表单元素统一（prePayDialog 片段使用 form-control） */
.paywrap-panel .form-control {
    height: 36px;
    border-radius: 8px;
    border: 1px solid #dfe3ea;
    box-shadow: none;
    font-size: 13px;
}
.paywrap-panel .form-control:focus {
    border-color: var(--lg-brand);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .14);
}
.paywrap-panel .modal-content { border: 0; box-shadow: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .login-wrap { gap: 56px; grid-template-columns: minmax(0, 1fr) 400px; }
    .login-card { width: 400px; }
}

@media (max-width: 980px) {
    .login-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0;
        padding: 40px 20px;
    }
    .login-brand { display: none; }
    .login-card { width: 424px; }
}

@media (max-width: 480px) {
    .login-card {
        width: 100%;
        padding: 32px 22px 22px;
        border-radius: 18px;
    }
    .login-card .card-title { font-size: 21px; }
}

/* 尊重系统的减少动效设置 */
@media (prefers-reduced-motion: reduce) {
    .login-bg::after,
    .login-dot,
    .login-brand .brand-lockup small::before { animation: none; }
    .login-brand,
    .login-card { animation: none; }
    .login-feat:hover { transform: none; }
}

/* 不支持 backdrop-filter 时的降级：加深底色保证可读性 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-card { background: linear-gradient(160deg, rgba(21, 38, 72, .96), rgba(12, 26, 52, .96)); }
}
