/* The sign-in page. Deliberately not part of the app build: it must render, styled and in the
   right fonts, before anyone is signed in, so it needs only files that are served without a
   session (this one, tokens.css, the fonts and the icon). The rules are the same ones the app
   uses for these parts (web/src/styles.css); keep the two in step. */
*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-ui)/1.4 var(--font-display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.signin { flex: 1; display: grid; place-items: center; padding: 32px 20px; }
.signin-card { display: grid; gap: 18px; width: 100%; max-width: 360px; }
.signin-mark { width: 56px; height: 56px; }
.mk-tile { fill: var(--accent); }
.mk-ink { fill: var(--accent-ink); }
.signin-title { font-size: 44px; font-weight: 760; letter-spacing: -.045em; line-height: 1; font-variation-settings: "opsz" 96; }
.signin-lede { font: 400 20px/1.4 var(--font-text); color: var(--ink-2); }

.field { display: grid; gap: 6px; min-width: 0; margin-top: 6px; }
.label { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%;
  min-height: var(--hit);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  background: var(--field);
  color: var(--ink);
  font: 400 16px/1.2 var(--font-display);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--focus); }
/* A failed attempt puts the note right after the field, which then takes the same colour. */
.field:has(+ .note--bad) .input { border-color: var(--bad); }

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-well);
  background: var(--well);
  font: 400 16px/1.45 var(--font-text);
  color: var(--ink-2);
}
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }
.note--bad { background: var(--bad-soft); color: var(--ink); }
.note--bad svg { color: var(--bad); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--hit);
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font: 650 var(--fs-ui)/1 var(--font-display);
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
