/* Same tokens as the app itself (saios/web/static/css/app.css) so the
   login page does not feel like a different product from what it guards. */
:root {
  --paper: #fbf8f2; --surface: #ffffff; --ink: #1f2421; --ink-soft: #55605a;
  --rule: #e3dfd3; --accent-attention: #b4622a; --accent-critical: #a13b2e;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14171a; --surface: #1b1f22; --ink: #ede9e0; --ink-soft: #b7b2a5;
    --rule: #2b2f31; --accent-attention: #e0954f; --accent-critical: #d97b6c;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--font-body); padding: 1.5rem;
}
.card {
  width: 100%; max-width: 22rem; background: var(--surface); border: 1px solid var(--rule);
  border-top: 3px solid var(--accent-attention); border-radius: 3px; padding: 2rem 1.75rem;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 0 0 1.5rem;
}
.wordmark span {
  display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
h1 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 1.25rem; }
.err {
  background: color-mix(in srgb, var(--accent-critical) 14%, transparent);
  color: var(--accent-critical); padding: 0.6rem 0.8rem; border-radius: 3px;
  font-size: 0.9rem; margin: 0 0 1rem;
}
label { display: block; font-size: 0.8rem; color: var(--ink-soft); margin: 0.9rem 0 0.3rem; }
input {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--rule); border-radius: 3px;
  background: var(--paper); color: var(--ink); font-size: 1rem;
}
input:focus-visible { outline: 2px solid var(--accent-attention); outline-offset: 1px; }
button {
  width: 100%; margin-top: 1.4rem; padding: 0.65rem; border: none; border-radius: 3px;
  background: var(--ink); color: var(--paper); font-size: 1rem; font-weight: 600; cursor: pointer;
}
button:hover { background: var(--accent-attention); }
button:focus-visible { outline: 2px solid var(--accent-attention); outline-offset: 2px; }
