:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  --login-bg: #f7f7f7;
  --login-text: #191919;
  --login-input: #fff;
  --login-line: #d0d0d0;
  --login-error: #b92332;
  --login-accent: #8721b1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --login-bg: #120d19;
    --login-text: #f1f1f1;
    --login-input: #201629;
    --login-line: #3b2d48;
    --login-error: #ff8d97;
    --login-accent: #cf75fa;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--login-bg); color: var(--login-text); min-height: 100dvh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
main { width: 100%; max-width: 360px; padding-block: 24px; }
h1 { margin: 12px 0 8px; font-size: 30px; }
p { line-height: 1.5; }
form { display: grid; gap: 10px; margin-top: 28px; }
label:not(:first-child) { margin-top: 12px; }
input, button { font: inherit; min-height: 48px; border-radius: 12px; }
input { width: 100%; padding: 12px; border: 1px solid var(--login-line); background: var(--login-input); color: inherit; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--login-accent); outline-offset: 3px; }
button { cursor: pointer; padding: 12px 18px; }
#submit { margin-top: 14px; background: var(--login-accent); color: var(--login-bg); border: 0; }
button:disabled { cursor: wait; opacity: .6; }
#error { color: var(--login-error); margin: 6px 0; }
.hint { font-size: 14px; opacity: .65; margin-top: 24px; }

.brand { display: block; max-width: 100%; height: auto; margin-bottom: 28px; }
