:root {
    --login-bg: #07111f;
    --login-primary: #2f6df6;
    --login-cyan: #35d3f3;
    --login-text: #10203a;
    --login-muted: #6b7b93;
    --login-border: #dce5f1;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: #fff;
    background: radial-gradient(circle at 18% 18%, rgba(47, 109, 246, .23), transparent 34%), radial-gradient(circle at 82% 72%, rgba(53, 211, 243, .12), transparent 30%), linear-gradient(135deg, var(--login-bg), #08182c 48%, #0c2540);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
.login-page { position: relative; display: flex; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: 42px; }
.login-page::before {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(112, 167, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 167, 255, .045) 1px, transparent 1px);
    background-size: 42px 42px; content: ""; pointer-events: none;
}
.login-glow { position: absolute; width: 360px; height: 360px; border: 1px solid rgba(91, 151, 255, .18); border-radius: 50%; pointer-events: none; }
.login-glow::before, .login-glow::after { position: absolute; border: 1px solid rgba(53, 211, 243, .13); border-radius: inherit; content: ""; }
.login-glow::before { inset: 42px; }
.login-glow::after { inset: 92px; }
.login-glow-left { top: -180px; left: -150px; }
.login-glow-right { right: -175px; bottom: -190px; }
.login-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 72px; align-items: center; width: min(1120px, 100%); margin: auto; }
.login-brand { padding: 28px 0; }
.login-brand-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 70px; }
.login-logo { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 40px rgba(17, 72, 172, .28); }
.login-logo img { width: 39px; height: 39px; object-fit: contain; }
.login-brand-name { font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.login-brand-version { margin-top: 4px; color: #83a2c9; font-size: 11px; letter-spacing: .18em; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #77dcf3; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.login-eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--login-cyan); box-shadow: 0 0 14px var(--login-cyan); content: ""; }
.login-brand h1 { max-width: 650px; margin: 0; font-size: clamp(38px, 5vw, 66px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.login-brand h1 span { display: block; margin-top: 10px; color: #87a5cd; font-size: .38em; font-weight: 500; letter-spacing: .12em; }
.login-brand-copy { max-width: 560px; margin: 26px 0 0; color: #9bb0cc; font-size: 15px; line-height: 1.9; }
.login-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 590px; margin-top: 38px; }
.login-capability { min-height: 82px; padding: 16px; border: 1px solid rgba(139, 177, 226, .14); border-radius: 12px; color: #b8c8dd; background: rgba(9, 28, 51, .56); backdrop-filter: blur(8px); }
.login-capability strong { display: block; margin-bottom: 6px; color: #fff; font-size: 13px; }
.login-capability span { font-size: 11px; line-height: 1.55; }
.login-card { padding: 38px 38px 32px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 22px; color: var(--login-text); background: rgba(255, 255, 255, .965); box-shadow: 0 28px 80px rgba(0, 8, 26, .4); }
.login-card-kicker { color: var(--login-primary); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.login-card h2 { margin: 9px 0 8px; font-size: 29px; line-height: 1.3; }
.login-card-intro { margin: 0 0 30px; color: var(--login-muted); font-size: 13px; }
.login-field { position: relative; margin-bottom: 20px; }
.login-field label { display: block; margin-bottom: 8px; color: #34435a; font-size: 13px; font-weight: 700; }
.login-input-wrap { position: relative; }
.login-input-icon { position: absolute; top: 50%; left: 15px; display: grid; place-items: center; width: 19px; height: 19px; color: #7c8ba0; transform: translateY(-50%); pointer-events: none; }
.login-input-icon svg, .login-password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-field input { width: 100%; height: 50px; border: 1px solid var(--login-border); border-radius: 10px; outline: none; padding: 0 46px; color: var(--login-text); background: #f8faff; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.login-field input::placeholder { color: #9aa8ba; }
.login-field input:focus { border-color: #5b8af6; background: #fff; box-shadow: 0 0 0 4px rgba(47, 109, 246, .11); }
.login-field.has-error input { border-color: #e55261; box-shadow: 0 0 0 4px rgba(229, 82, 97, .09); }
.login-password-toggle { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; color: #718098; background: transparent; cursor: pointer; transform: translateY(-50%); }
.login-password-toggle:hover, .login-password-toggle:focus { color: var(--login-primary); background: #eaf0ff; outline: none; }
.help-block { display: block; margin-top: 6px; color: #cf3347; font-size: 12px; }
.login-error { margin: 0 0 18px; border: 1px solid #f4c4ca; border-radius: 9px; padding: 10px 12px; color: #ae2638; background: #fff2f4; font-size: 13px; line-height: 1.5; }
.login-submit { width: 100%; height: 50px; margin-top: 5px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(100deg, #255be1, #2f79f6 56%, #259bd8); box-shadow: 0 11px 24px rgba(47, 109, 246, .26); cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: .08em; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 29px rgba(47, 109, 246, .34); }
.login-submit:focus { outline: 3px solid rgba(53, 211, 243, .26); outline-offset: 2px; }
.login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: #7c8ba0; font-size: 11px; }
.login-security::before { width: 6px; height: 6px; border-radius: 50%; background: #28b886; box-shadow: 0 0 0 4px rgba(40, 184, 134, .11); content: ""; }

@media (max-width: 920px) {
    .login-page { padding: 28px 22px; overflow: auto; }
    .login-shell { grid-template-columns: 1fr; gap: 32px; width: min(560px, 100%); }
    .login-brand { padding: 0; }
    .login-brand-mark { margin-bottom: 28px; }
    .login-brand h1 { font-size: clamp(34px, 9vw, 50px); }
    .login-brand-copy { margin-top: 18px; }
    .login-capabilities { margin-top: 24px; }
}
@media (max-width: 560px) {
    .login-page { padding: 20px 14px; }
    .login-brand h1 span { font-size: .34em; }
    .login-brand-copy { font-size: 13px; }
    .login-capabilities { grid-template-columns: 1fr; }
    .login-capability { min-height: 0; }
    .login-card { padding: 30px 22px 25px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
