/* 登录页：沿用原版两栏布局（左品牌 / 右登录），整页一块连续背景，无分界线。
   颜色取自 theme-tokens.css。 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    min-height: 100vh;
    overflow: hidden;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    color: var(--c-text, #E6EEF8);
    background: var(--c-bg, #0A1324);
}

/* ---------- 背景 ---------- */
.login-page { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(460px, 52%) 1fr; min-height: 100vh; }
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background:
        radial-gradient(1100px 760px at 18% 46%, rgba(38, 100, 200, .26), rgba(20, 56, 130, .10) 50%, transparent 74%),
        radial-gradient(700px 520px at 78% 52%, rgba(76, 141, 255, .08), transparent 70%),
        linear-gradient(115deg, #0E2149 0%, #0C1A38 40%, var(--c-bg, #0A1324) 72%);
}
/* 极淡网格，向四周渐隐 */
.bg:before { content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(120, 175, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 175, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 40% 50%, #000 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 70% 70% at 40% 50%, #000 30%, transparent 85%);
}
/* 底部暗角，托住页脚 */
.bg:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, rgba(5, 10, 22, .55)); }

.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(130, 185, 255, .16); }
.r1 { width: 620px; height: 620px; left: calc(52% - 310px); top: calc(50% - 310px);
      box-shadow: 0 0 0 46px rgba(110, 170, 255, .028), 0 0 0 108px rgba(110, 170, 255, .02); }
.r2 { width: 760px; height: 760px; left: calc(52% - 380px); top: calc(50% - 380px);
      border: 1px dashed rgba(130, 185, 255, .14); animation: spin 90s linear infinite; }
.r3 { width: 460px; height: 460px; left: -230px; bottom: -200px; box-shadow: 0 0 0 64px rgba(110, 170, 255, .025); }
.beam { position: absolute; height: 1px; width: 140vmax; left: 50%; top: 50%; transform-origin: 0 0;
        background: linear-gradient(90deg, transparent, rgba(120, 190, 255, .22) 45%, rgba(120, 190, 255, .22) 55%, transparent); }
.b1 { transform: translate(-50%, 0) rotate(-58deg) translateX(-10%); margin-left: 8%; }
.b2 { transform: translate(-50%, 0) rotate(-58deg) translateX(-10%); margin-left: 30%; opacity: .5; }
.glow { position: absolute; width: 520px; height: 520px; right: 9vw; top: 50%; margin-top: -260px; border-radius: 50%;
        background: radial-gradient(circle, rgba(76, 141, 255, .20), transparent 65%); filter: blur(10px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 左侧品牌 ---------- */
.brand-panel { position: relative; display: flex; flex-direction: column; padding: 46px clamp(42px, 7vw, 120px) 72px; }
.brand-top { display: flex; align-items: center; gap: 12px; letter-spacing: .5px; }
.brand-top strong { display: block; font-size: 24px; line-height: 1.15; color: #fff; }
.brand-top span { display: block; margin-top: 4px; color: rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: 1.4px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-main { margin: auto 0; padding: 40px 0; }
.eyebrow { color: #83C3FF; font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.brand-main h1 { margin: 18px 0; font-size: clamp(44px, 4.4vw, 68px); line-height: 1.26; letter-spacing: 3px; color: #fff; }
.brand-main h1 em { font-style: normal; background: linear-gradient(90deg, #6AA8FF, #4FE3D2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-description { max-width: 560px; color: rgba(230, 238, 248, .75); font-size: clamp(15px, 1.05vw, 18px); text-wrap: pretty; line-height: 2; }
.feature-list { display: flex; gap: 36px; margin-top: 40px; }
.feature-list div { display: grid; gap: 7px; padding-left: 12px; border-left: 2px solid rgba(76, 141, 255, .45); }
.feature-list b { color: #7CC4FF; font: 600 13px "Segoe UI", sans-serif; letter-spacing: 1px; }
.feature-list span { font-size: 16px; color: rgba(255, 255, 255, .82); }
.brand-footer { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ok, #4ADE80); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }

/* ---------- 右侧登录卡 ---------- */
.login-panel { display: flex; align-items: center; justify-content: center; padding: 42px 24px 90px; }
.login-content { position: relative; width: min(100%, 450px); padding: 46px 44px 38px;
    background: rgba(17, 29, 51, .78); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 6, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.login-content:before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(106, 161, 255, .9), transparent); }
.mobile-brand { display: none; }
.login-kicker { color: var(--c-brand, #4C8DFF); font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.login-content h2 { margin-top: 10px; color: #fff; font-size: 34px; letter-spacing: 1px; }
.login-intro { margin: 10px 0 32px; color: var(--c-text-2, #9AABC4); font-size: 15px; }
.field-label { display: block; margin: 0 0 8px; color: var(--c-text-2, #9AABC4); font-size: 15px; font-weight: 600; }
.input-wrap { position: relative; margin-bottom: 20px; }
.input-wrap svg { position: absolute; top: 50%; left: 15px; width: 20px; height: 20px; fill: none; stroke: var(--c-text-3, #62738F); stroke-width: 1.7; transform: translateY(-50%); pointer-events: none; transition: .2s; }
.input-wrap input { display: block; width: 100%; height: 52px; padding: 0 14px 0 48px; color: var(--c-text, #E6EEF8);
    background: rgba(7, 14, 28, .7); border: 1px solid var(--c-border, #22324F); border-radius: 8px; outline: none;
    font: 16px "Microsoft YaHei", sans-serif; transition: border-color .2s, box-shadow .2s; }
.input-wrap input::placeholder { color: var(--c-text-3, #62738F); }
.input-wrap input:focus { border-color: var(--c-brand, #4C8DFF); box-shadow: 0 0 0 3px var(--c-brand-soft, rgba(76, 141, 255, .14)); }
.input-wrap input:-webkit-autofill { -webkit-text-fill-color: var(--c-text, #E6EEF8); -webkit-box-shadow: 0 0 0 40px #0B162B inset; caret-color: #fff; }
.input-wrap:focus-within svg { stroke: var(--c-brand, #4C8DFF); }
.btn-login { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 52px; margin-top: 12px;
    color: #fff; background: var(--c-brand, #4C8DFF); border: 0; border-radius: 8px; box-shadow: 0 10px 24px rgba(76, 141, 255, .3);
    cursor: pointer; font: 600 16px "Microsoft YaHei", sans-serif; letter-spacing: 4px; transition: transform .18s, background .18s, box-shadow .18s; }
.btn-login b { font: 20px Arial, sans-serif; line-height: 1; letter-spacing: 0; }
.btn-login:hover { background: var(--c-brand-hover, #6AA1FF); transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }
.error { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 10px 12px; color: var(--c-danger, #FF6B70);
    background: var(--c-danger-soft, rgba(229, 72, 77, .18)); border: 1px solid rgba(255, 107, 112, .35); border-radius: 6px; font-size: 14px; }
.error span { display: inline-grid; place-items: center; width: 15px; height: 15px; color: #fff; background: var(--c-danger, #FF6B70); border-radius: 50%; font-size: 11px; font-weight: bold; }
.security-note { margin-top: 20px; color: var(--c-text-3, #62738F); text-align: center; font-size: 13px; }
.security-note span { color: var(--c-ok, #4ADE80); font-weight: bold; margin-right: 3px; }

/* ---------- 页脚 ---------- */
.site-footer { position: fixed; z-index: 20; right: 24px; bottom: 16px; left: 24px; color: rgba(255, 255, 255, .5);
    text-align: center; font-size: 13px; line-height: 1.9; letter-spacing: .15px; }
.site-footer-sub { font-size: 12px; }
.site-footer span { margin: 0 7px; opacity: .6; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- 适配 ---------- */
@media (max-height: 760px) { .brand-main { padding: 20px 0; } .feature-list { margin-top: 28px; } .login-panel { padding-bottom: 70px; } }
@media (max-width: 1100px) { .r1, .r2 { left: calc(48% - 310px); } .glow { right: 2vw; } }
@media (max-width: 820px) {
    body { overflow: auto; }
    .login-page { display: block; }
    .brand-panel, .ring, .beam { display: none; }
    .login-panel { min-height: 100vh; padding: 30px 20px 110px; }
    .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 36px; color: #fff; }
    .mobile-brand .brand-mark { width: 30px; height: 30px; }
    .mobile-brand strong { font-size: 17px; }
    .login-content { padding: 32px 26px 26px; }
    .site-footer { right: 12px; bottom: 10px; left: 12px; font-size: 10px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) { .r2 { animation: none; } }

/* 手机窄屏：收窄卡片内边距，保证 360～390px 宽度下按钮与输入框完整可见。 */
@media (max-width: 480px) {
    .login-panel { padding: 24px 14px 104px; }
    .login-content { padding: 34px 20px 26px; border-radius: 12px; }
    .login-content h2 { margin-top: 8px; font-size: 28px; }
    .login-intro { margin: 8px 0 24px; font-size: 14px; }
    .mobile-brand { margin-bottom: 26px; }
    .input-wrap input,
    .btn-login { height: 50px; }
}
