/* Sign-in page only. The SPA under /web-app ships its own stylesheet. Tokens
   lifted from the approved Cairn design so this page and the app resolve to
   the same palette. */

:root {
  --paper: #F3F0E7;
  --paper-raised: #FBFAF6;
  --ink: #16150F;
  --line: #DFDACC;
  --muted: #8A857A;
  --body: #2C2A22;
  --red: #C8452B;
  --red-tint: #FAEDE9;
  --red-line: #E3C4BB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  top: -240px;
  right: -200px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 69, 43, .11), rgba(200, 69, 43, 0) 66%);
  pointer-events: none;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px 30px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-raised);
  box-shadow: 0 24px 60px -30px rgba(22, 21, 15, .35);
}

.login-head { text-align: center; }

.login-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 22px 'Instrument Serif', Georgia, serif;
  color: var(--paper);
}

.login-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-title h1 {
  margin: 0;
  font: 400 26px 'Instrument Serif', Georgia, serif;
  letter-spacing: -.01em;
}

.login-tag {
  font: 500 9px 'IBM Plex Mono', monospace;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 6px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-head p {
  margin: 12px 0 0;
  font: 400 12.5px/1.6 'IBM Plex Sans', sans-serif;
  color: var(--muted);
  text-wrap: pretty;
}

.login-stats {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.login-stats div {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.login-stats strong {
  display: block;
  font: 600 17px 'IBM Plex Mono', monospace;
  letter-spacing: -.02em;
  color: var(--ink);
}

.login-stats strong.ok { color: var(--red); }

.login-stats span {
  display: block;
  margin-top: 3px;
  font: 400 9.5px 'IBM Plex Sans', sans-serif;
  color: var(--muted);
  line-height: 1.35;
}

.login-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font: 500 14px 'IBM Plex Sans', sans-serif;
  text-decoration: none;
  transition: border-color .15s;
}

.login-google:hover {
  border-color: var(--ink);
}

.login-footnote {
  margin: 16px 0 0;
  text-align: center;
  font: 400 11px/1.5 'IBM Plex Sans', sans-serif;
  color: var(--muted);
}

.error-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--red-line);
  background: var(--red-tint);
  border-radius: 4px;
  font-size: 12.5px;
}

.error-banner strong { color: var(--red); }
