/*
 * BSM auth gate — self-contained styling.
 *
 * No web fonts, no CDN, no external anything: the strict self-only CSP on this
 * page forbids all of it, and a sign-in screen that fails to render because a
 * font host is slow is a sign-in screen nobody can use.
 */

:root {
  color-scheme: dark;
  --ink: #eef1f4;
  --muted: #9aa4ae;
  --faint: #6b7480;
  --line: rgba(255, 255, 255, 0.14);
  --key: #7fc8a9;
  --bg: #0b0f14;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(127, 200, 169, 0.10), transparent 70%),
    var(--bg);
}

.gate {
  width: 100%;
  max-width: 30rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--key);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lede {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
}

.actions { margin: 0 0 1rem; }

/* 48px minimum, because this is a touch screen in a classroom as often as not */
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid var(--key);
  border-radius: 999px;
  background: rgba(127, 200, 169, 0.12);
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

.primary:hover { background: rgba(127, 200, 169, 0.2); }

.primary:focus-visible {
  outline: 3px solid var(--key);
  outline-offset: 3px;
}

.note {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.foot {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--faint);
}

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