@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/montserrat-700.woff) format("woff");
}
/* Bellis' goobee door: sign-in and enrollment. Same tokens as the original goobee door (2026-10-21).
   No external fonts or scripts (CSP default-src 'self'). System font stack renders as SF on Apple devices. */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --error: #e30000;
  --ok: #1d8a3a;
  --shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1d1d1f;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #424245;
    --accent: #2997ff;
    --accent-hover: #3aa3ff;
    --error: #ff6961;
    --ok: #30d158;
    --shadow: 0 2px 4px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main.door {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}
.door-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 44px 40px 36px;
  text-align: center;
}
.door-mark {
  display: block;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .22em;
  text-indent: .22em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  margin: 4px 0 10px;
}
.door-card h1 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
  margin: 0 0 22px;
}
.door-card .lede {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 22px;
}
.door-card form { text-align: left; }
.door-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 6px 2px;
}
.door-card input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  margin: 0 0 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.door-card input:not([type="checkbox"]):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,.18);
}
.door-card label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  margin: 2px 2px 18px;
  cursor: pointer;
}
.door-card label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.door-card button, .door-card a.button {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.door-card button:hover, .door-card a.button:hover { background: var(--accent-hover); }
.door-card button:active, .door-card a.button:active { transform: translateY(1px); }
.door-card #auth-message {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}
.door-card #auth-message.error { color: var(--error); }
.door-card .hint {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.door-card .hint a { color: var(--accent); text-decoration: none; }
.door-card .hint a:hover { text-decoration: underline; }
footer.door-foot {
  padding: 18px 16px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Birthday dress (Feb 20, Bellis's day). door.js and state.js add body.birthday on that date, client clock, so this
   recurs every year with no rebuild. Confetti is a layer of repeating dot gradients: behind the whole door, and on
   the day page only inside the top bar so the lists stay readable. Motion-free when the system asks for it. */
body.birthday:not(.page) { position: relative; }
body.birthday:not(.page)::before, body.birthday.page .top::before {
  content: "";
  position: fixed;
  inset: -600px 0 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: .9;
  background-image:
    radial-gradient(circle, #ff5d73 0 3.5px, transparent 4.5px),
    radial-gradient(circle, #ffc62b 0 3px, transparent 4px),
    radial-gradient(circle, #3ec46d 0 3px, transparent 4px),
    radial-gradient(circle, #2997ff 0 3.5px, transparent 4.5px),
    radial-gradient(circle, #b26bff 0 2.5px, transparent 3.5px),
    radial-gradient(circle, #ff9f0a 0 2.5px, transparent 3.5px);
  background-size: 110px 150px, 150px 190px, 130px 170px, 170px 210px, 160px 200px, 140px 180px;
  background-position: 10px 20px, 70px 90px, 100px 40px, 40px 160px, 120px 120px, 60px 60px;
  animation: goobee-confetti 24s linear infinite;
}
body.birthday.page .top { position: relative; overflow: hidden; }
body.birthday.page .top::before { position: absolute; inset: -600px 0 0 0; opacity: .55; }
@keyframes goobee-confetti {
  to { background-position: 10px 170px, 70px 280px, 100px 210px, 40px 370px, 120px 320px, 60px 240px; }
}
@media (prefers-reduced-motion: reduce) { body.birthday:not(.page)::before, body.birthday.page .top::before { animation: none; } }
body.birthday .door-card { box-shadow: var(--shadow), 0 0 0 3px rgba(255,198,43,.7); }
body.birthday .door-card::before { content: "🎂"; display: block; font-size: 42px; line-height: 1; margin: -6px 0 14px; }
body.birthday .door-card h1 { color: var(--ink); font-weight: 600; font-size: 20px; }
body.birthday .door-mark, body.birthday.page .top .mark { background: linear-gradient(90deg, #ff5d73, #ffc62b, #3ec46d, #2997ff, #b26bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.birthday.page .top .mark::before { content: "🎂"; margin-right: .4em; color: #1d1d1f; -webkit-text-fill-color: #1d1d1f; }
body.birthday.page .top { box-shadow: 0 2px 0 0 #ff5d73, 0 4px 0 0 #ffc62b, 0 6px 0 0 #3ec46d, 0 8px 0 0 #2997ff; }
