:root {
    color-scheme: dark;
    --canvas: #0d0f12;
    --surface: #15191f;
    --surface-raised: #1a1f27;
    --line: #2a303a;
    --line-strong: #3b4452;
    --text: #f3f6fa;
    --text-secondary: #a8b0bd;
    --text-muted: #747e8d;
    --accent: #6f8cff;
    --accent-strong: #8ca3ff;
    --danger: #ed6a72;
    --danger-soft: rgba(237, 106, 114, .12);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --canvas: #f3f5f8;
        --surface: #ffffff;
        --surface-raised: #f8f9fb;
        --line: #e2e6ec;
        --line-strong: #cbd1da;
        --text: #1a2029;
        --text-secondary: #596372;
        --text-muted: #7a8594;
        --accent: #526fe5;
        --accent-strong: #3e5fd8;
        --danger: #c8424d;
        --danger-soft: rgba(200, 66, 77, .09);
    }
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, .9fr) minmax(460px, 1.1fr); }
.login-context { min-height: 100vh; padding: clamp(34px, 5vw, 72px); display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.context-brand { display: flex; align-items: center; gap: 12px; }
.context-brand span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.context-brand strong { font-size: 13px; letter-spacing: .03em; }
.context-copy { margin: auto 0; max-width: 520px; }
.eyebrow { margin: 0 0 10px; color: var(--text-muted); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.context-copy h1 { margin: 0; font-size: clamp(46px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -.055em; }
.context-copy > p:last-child { max-width: 440px; margin: 28px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
.context-points { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; color: var(--text-muted); font-size: 12px; }
.context-points li { display: flex; align-items: center; gap: 8px; }
.context-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.login-panel { min-height: 100vh; padding: 30px; display: grid; place-items: center; }
.login-form-wrap { width: min(390px, 100%); }
.login-form-wrap h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.login-subtitle { margin: 8px 0 32px; color: var(--text-secondary); font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.form-group input { width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); transition: border-color .15s ease, background-color .15s ease; }
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus { outline: 0; border-color: var(--accent); background: var(--surface-raised); }
#loginBtn { width: 100%; height: 48px; margin-top: 10px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; transition: background-color .15s ease, opacity .15s ease; }
#loginBtn:hover:not(:disabled) { background: var(--accent-strong); }
#loginBtn:disabled { opacity: .55; cursor: wait; }
.error { display: none; margin: 0 0 18px; padding: 11px 13px; border: 1px solid rgba(237, 106, 114, .3); border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }
.error.show { display: block; }
.login-meta { margin: 24px 0 0; color: var(--text-muted); font-size: 11px; text-align: center; }

@media (max-width: 850px) {
    .login-shell { display: block; }
    .login-context { display: none; }
    .login-panel { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .01ms !important; }
}


