:root {
  color-scheme:light;
  font-family:Inter, "Segoe UI", Arial, sans-serif;
  --bg:#f1f2eb; --panel:#fffefa; --ink:#1d302a; --muted:#52645b; --line:#bcc8bd; --focus:#176547;
}
:root[data-theme="dark"] { color-scheme:dark; --bg:#101918; --panel:#182321; --ink:#edf2ec;
  --muted:#b1c0b8; --line:#51685c; --focus:#a2dbb2; }
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) { color-scheme:dark; --bg:#101918; --panel:#182321; --ink:#edf2ec;
    --muted:#b1c0b8; --line:#51685c; --focus:#a2dbb2; }
}
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; min-height:100svh; display:grid; place-items:center; background:var(--bg); color:var(--ink); }
.login-shell { width:min(100% - 32px, 440px); margin:30px 0; background:var(--panel);
  border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.login-brand { display:flex; align-items:center; gap:10px; color:#f3f5ec; background:#172b27;
  padding:20px clamp(22px,6vw,36px); font-size:24px; letter-spacing:-.05em; font-weight:700; }
.login-shell section { padding:28px clamp(22px,6vw,36px) 36px; }
h1 { margin:0; font-size:clamp(31px,5vw,38px); line-height:1.1; letter-spacing:-.045em; }
.intro { margin:9px 0 23px; color:var(--muted); font-size:15px; line-height:1.5; }
.login-status { padding:10px 12px; margin:0 0 16px; border-inline-start:3px solid var(--focus);
  background:var(--bg); font-size:14px; line-height:1.45; }
.login-status:empty, [hidden] { display:none; }
label { display:block; margin:16px 0 6px; font-size:14px; font-weight:650; }
input,button { font:inherit; }
input:not([type="hidden"]) { display:block; width:100%; padding:10px 12px; min-height:46px; border:1px solid var(--line);
  border-radius:7px; background:var(--panel); color:var(--ink); font-size:16px; }
.password-field { position:relative; }
#code { font-variant-numeric:tabular-nums; letter-spacing:.12em; }
#code::placeholder { letter-spacing:normal; }
.password-field:has(.reveal:not([hidden])) input { padding-inline-end:99px; }
.reveal { position:absolute; inset:3px 3px 3px auto; padding:0 11px; border:0; border-radius:4px;
  background:var(--panel); color:var(--focus); font-size:14px; font-weight:600; }
button { cursor:pointer; touch-action:manipulation; }
.submit { display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:24px;
  min-height:48px; padding:10px 16px; border:1px solid #235842; border-radius:7px;
  background:#235842; color:white; font-size:16px; font-weight:650; }
.submit span { font-size:21px; line-height:1; }
.submit:hover { background:#194832; }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
@media (max-height:440px) { body { align-items:start; } .login-shell { margin-block:16px; } }
@media (forced-colors:active) { .submit { border:1px solid ButtonText; } }
