:root { --bg:#f6f5f2; --surface:#fff; --surface-2:#f0efeb; --text:#1b1b1f; --muted:#6b6b73; --line:#e4e2dc; --accent:#2f6fed; --danger:#e5484d; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#121214; --surface:#1c1c21; --surface-2:#26262c; --text:#f1f1f4; --muted:#9a9aa6; --line:#2e2e36; --accent:#5b8cff; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  display: grid; place-items: center; padding: 24px calc(16px + env(safe-area-inset-right)) 24px calc(16px + env(safe-area-inset-left));
}
.login { width: 100%; max-width: 360px; text-align: center; }
.logo { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 12px; }
h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; }
.sub { margin: 0 0 20px; color: var(--muted); }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: left; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
input { width: 100%; font: inherit; font-size: 16px; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-bottom: 14px; outline: none; -webkit-appearance: none; }
input:focus { border-color: var(--accent); }
button { width: 100%; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--accent); border: 0; border-radius: 14px; min-height: 52px; cursor: pointer; margin-top: 4px; }
button:active { transform: scale(.98); }
.error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-weight: 600; margin: 0 0 14px; }
.note { color: var(--muted); font-size: 13px; margin-top: 16px; }
