:root { --login-blue: #3c8dbc; --login-ink: #2f4050; --login-muted: #83909d; --login-border: #dce3ea; }
* { box-sizing: border-box; }
html, body.login-modern-page { min-height: 100%; }
body.login-modern-page { margin: 0; color: var(--login-ink); background: #f3f5f7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.login-shell { position: relative; isolation: isolate; display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.login-shell::before { content: ""; position: absolute; z-index: -2; inset: 0 0 auto; height: 260px; background: #2f4050; }
/* 背景装饰保持在内容后方，不参与交互。 */
.login-grid { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 8% 65%, #77a5d020, transparent 40%), radial-gradient(ellipse at 92% 8%, #d9e6f075, transparent 38%); }
.login-grid::before { content: ""; position: absolute; inset: 0 0 auto; height: 260px; background-image: linear-gradient(#d0e0f008 1px, transparent 1px), linear-gradient(90deg, #d0e0f008 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(135deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 80%); }
.login-grid::after { content: ""; position: absolute; width: 560px; height: 560px; left: -260px; bottom: -300px; border: 1px solid #b6cfe120; border-radius: 50%; box-shadow: 0 0 0 60px #b6cfe108, 0 0 0 120px #b6cfe106, 0 0 0 180px #b6cfe104; }
.login-shell::after { content: ""; position: absolute; z-index: -1; top: 110px; right: 26px; width: 116px; height: 140px; pointer-events: none; opacity: .4; background-image: radial-gradient(#7295b055 1px, transparent 1px); background-size: 14px 14px; mask-image: linear-gradient(145deg, #000, transparent); -webkit-mask-image: linear-gradient(145deg, #000, transparent); }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: calc(100% - 112px); margin: 0 auto; padding: 32px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 18px; letter-spacing: 1px; min-width: 0; }
.brand strong { font-weight: 600; overflow-wrap: anywhere; }
.brand-mark { position: relative; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: #3c8dbc; }
.brand-shape { position: absolute; width: 6px; background: #fff; border-radius: 1px; transform: skewY(-25deg); }
.brand-shape-one { height: 13px; top: 13px; left: 9px; opacity: .65; }
.brand-shape-two { height: 20px; top: 6px; right: 9px; }
.system-health { display: flex; align-items: center; gap: 8px; color: #aebecb; font-size: 12px; flex-shrink: 0; }
.health-dot { width: 6px; height: 6px; border-radius: 50%; background: #83b7d7; box-shadow: 0 0 0 4px #83b7d710; }
.login-main { width: min(430px, calc(100% - 32px)); margin: auto; padding: 18px 0 34px; }
.login-card { width: 100%; margin: 0 auto; padding: 30px 34px; border: 1px solid #e1e7ed; border-top: 3px solid var(--login-blue); border-radius: 8px; background: #fff; box-shadow: 0 12px 36px #263c5010; }
.card-access-row { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #7e96a8; font-size: 10px; letter-spacing: 2px; }
.access-lock { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; background: #edf4f9; border-radius: 9px; color: var(--login-blue); font-size: 14px; letter-spacing: 0; }
.login-card h2 { margin: 0; color: var(--login-ink); font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: 1px; }
.login-welcome { margin: 10px 0 32px; color: var(--login-muted); font-size: 13px; line-height: 1.8; }
.login-field { margin-bottom: 22px; }
.login-field > label, .field-label-row label { display: inline-block; margin: 0 0 9px; color: #4c5d6e; font-size: 12px; font-weight: 500; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-label-row span { margin-bottom: 9px; color: #8c98a3; font-size: 10px; }
.field-label-row span i { margin-right: 3px; color: #6e98b6; }
.login-input-wrap { position: relative; display: flex; align-items: center; flex-wrap: wrap; min-height: 50px; border: 1px solid var(--login-border); border-radius: 9px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.login-input-wrap:focus-within { border-color: #3c8dbc; box-shadow: 0 0 0 3px #3c8dbc10; }
.login-input-wrap > i { width: 42px; flex: 0 0 42px; text-align: center; color: #99a9b7; font-size: 14px; }
.login-modern-page .login-input-wrap .form-control { width: 0; min-width: 0; flex: 1 1 0; border: 0; margin: 0; outline: 0; color: var(--login-ink); font-size: 13px; height: 48px !important; padding: 0 44px 0 0 !important; border-radius: 9px !important; background: transparent !important; box-shadow: none !important; }
.login-modern-page .login-input-wrap .form-control::placeholder { color: #a1aeb9; }
#validateCode { letter-spacing: 2px; }
#validateCode::placeholder { letter-spacing: 0; }
.password-toggle { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 7px; background: transparent; color: #99a9b7; cursor: pointer; }
.password-toggle:hover { color: var(--login-blue); background: #edf4f9; }
.password-toggle:focus-visible { outline: 2px solid var(--login-blue); outline-offset: 1px; }
.login-field label.error { display: block; margin: 6px 0 0; color: #b94d46; font-size: 11px; font-weight: 400; line-height: 1.5; }
.has-field-error .login-input-wrap { border-color: #b94d46; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; margin-top: 28px; padding: 13px 20px; border: 1px solid var(--login-blue); border-radius: 9px; background: var(--login-blue); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, box-shadow .2s; }
.login-submit:hover, .login-submit:focus { background: #337eaa; color: #fff; box-shadow: 0 6px 16px #3c8dbc1c; }
.login-submit:focus-visible { outline: 3px solid #a4cbe2; outline-offset: 3px; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.login-notice { display: flex; align-items: baseline; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #e6ebf0; color: #8c98a3; font-size: 10px; line-height: 1.9; }
.login-notice i { flex-shrink: 0; color: #829fb3; }
.login-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; width: calc(100% - 112px); margin: 0 auto; padding: 0 0 26px; color: #92a0ad; font-size: 10px; }
.footer-separator { color: #ccd3da; }
@media (max-width: 600px) {
    .login-header { width: calc(100% - 40px); padding: 24px 0; padding-top: max(24px, env(safe-area-inset-top)); }
    .brand { font-size: 16px; }
    .system-health { font-size: 10px; }
    .login-shell::before, .login-grid::before { height: 200px; }
    .login-card { padding: 26px 24px; }
    .login-main { padding-top: 12px; padding-bottom: 28px; }
    .login-modern-page .login-input-wrap .form-control { font-size: 16px; }
    .login-footer { width: calc(100% - 32px); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
    .login-modern-page .layui-layer-page { max-width: calc(100vw - 24px); }
    .login-modern-page .layui-layer-page .layui-layer-content { overflow-x: auto; }
}
@media (max-width: 359px) { .system-health, .field-label-row span { display: none; } .login-card { padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; } }

/* 分栏布局延续系统蓝灰配色。 */
@media (min-width: 701px) {
    .login-shell::before { inset: 0 50% 0 0; height: auto; }
    .login-grid::before { inset: 0 50% 0 0; height: auto; }
    .login-main { display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: min(1280px, 100%); padding: 28px 0 44px; }
    .login-card { width: min(370px, calc(100% - 64px)); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .login-card h2 { font-size: 30px; }
    .login-footer { justify-content: flex-end; }
}
.login-intro { min-width: 0; padding: 0 60px; color: #edf3f8; }
.intro-eyebrow { color: #a5bacd; font-size: 10px; letter-spacing: 3px; }
.login-intro h1 { margin: 24px 0 18px; font-size: clamp(28px, 3vw, 44px); line-height: 1.55; font-weight: 500; letter-spacing: 1px; }
.login-intro h1 > span { color: #7ebce0; }
.intro-description { color: #a7bdce; font-size: 13px; line-height: 1.9; }
.workspace-art { position: relative; width: 290px; height: 235px; margin: 22px auto 24px; }
.art-orbit { position: absolute; border: 1px solid #b5d3e630; border-radius: 50%; transform: rotate(-27deg); }
.orbit-one { width: 280px; height: 138px; top: 44px; left: 5px; }
.orbit-two { width: 200px; height: 200px; top: 13px; left: 45px; border-style: dashed; border-color: #b5d3e624; }
.art-core { position: absolute; display: flex; align-items: flex-end; justify-content: center; gap: 10px; width: 110px; height: 110px; top: 56px; left: 90px; padding: 27px; border: 1px solid #bdddf04d; border-radius: 28px; transform: rotate(-12deg); background: linear-gradient(140deg, #4a7799, #284b67); box-shadow: 0 24px 40px #10273c40, inset 0 1px #ffffff20; }
.art-core span { flex: 0 0 12px; border-radius: 3px; background: #a8d8f2; height: 23px; }
.art-core span:nth-child(2) { height: 41px; }
.art-core span:nth-child(3) { height: 55px; background: #6fa5ca; }
.art-node { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #9ebbd250; border-radius: 13px; color: #b9d9ef; background: #304f68; font-size: 18px; }
.node-one { top: 25px; right: 8px; transform: rotate(10deg); }
.node-two { top: 141px; left: 5px; transform: rotate(-10deg); }
.art-caption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 10px; color: #96b0c5; letter-spacing: 2px; }
.art-line { width: 24px; height: 1px; background: #96b0c5; }
.intro-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #adc4d530; padding-top: 20px; font-size: 10px; color: #9bb6cc; }
.intro-bottom i { margin-left: 10px; }
@media (min-width: 1450px) { .login-intro { padding-right: 100px; padding-left: 24px; } }
@media (min-width: 701px) and (max-width: 900px) { .login-header { width: calc(100% - 64px); } .login-intro { padding: 0 32px; } .login-intro h1 { font-size: 29px; } .intro-bottom { flex-direction: column; } .login-footer { width: calc(100% - 64px); } }
@media (max-width: 700px) { .login-intro { display: none; } }

.image-captcha-row { display: flex; align-items: stretch; gap: 12px; }
.image-captcha-row .login-input-wrap { flex: 1; min-width: 0; }
.image-captcha-refresh { flex: 0 0 128px; width: 128px; padding: 0; overflow: hidden; border: 1px solid var(--login-border); border-radius: 9px; background: #edf4fa; cursor: pointer; }
.image-captcha-refresh img { display: block; width: 100%; height: 48px; object-fit: contain; }
.image-captcha-refresh:focus-visible { outline: 2px solid var(--login-blue); outline-offset: 2px; }
@media (max-width: 380px) { .image-captcha-row { gap: 8px; } .image-captcha-refresh { flex-basis: 100px; width: 100px; } }
