/* Sign-in, signed-in and consent pages. Same look as the admin site: dark, quiet,
   hairlines, Inter. */

@font-face {
  font-family: Inter;
  src: url("/static/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --panel: #111113;
  --line: #222225;
  --ink: #ededef;
  --mute: #8b8b92;
  --hover: #1b1b1e;
  --blue: #3b82f6;
  --red: #f0605a;
}

* { box-sizing: border-box; min-width: 0; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 Inter, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { width: min(380px, 100%); }

.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; font-size: 15px; font-weight: 600; }
.mark { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 22px; height: 22px; }
.mark i { background: var(--ink); border-radius: 2px; }
.mark i:nth-child(2), .mark i:nth-child(3) { opacity: 0.35; }

.card { padding: 32px 28px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--mute); }
strong { font-weight: 600; color: var(--ink); }
.note { margin-top: 20px; font-size: 13px; color: var(--mute); }

form { display: grid; gap: 8px; margin-top: 24px; }
button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: progress; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button.secondary { background: none; color: var(--ink); border: 1px solid var(--line); }
button.secondary:hover { background: var(--hover); opacity: 1; }

#status { margin-top: 16px; font-size: 13px; color: var(--mute); }
#status.error { color: var(--red); }
#status:empty { display: none; }
