/* The site's own pages (website/templates: sign-in and home): the old sign-in page's look, a
 * dark glass card over the dusk landscape (atmosphere.css). COPIED from the old app's
 * web/static/css/atmosphere.css (its tokens in tokens.css): the reset, .topbar and .brand, "Auth
 * (Login / Signup)" with its "Dark-glass card overrides" (body.is-night there) folded in, and
 * the touch-target rule for .auth-links. Only the show list (.site-shows) is new.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  color: var(--ink);
  font-family: var(--font-display);
  min-height: 100vh; min-height: 100dvh;
  background: var(--dusk-base);
}

/* The page above the scene. In the flow (the old page was a fixed layer), so a long show
   list or a short phone screen scrolls instead of being cut off. */
.site-layer {
  position: relative; z-index: 55;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}
.site-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0; flex-shrink: 0;
}
@media (min-width: 800px) { .topbar { padding: 20px 32px 0; } }
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar { padding-top: calc(20px + env(safe-area-inset-top)); }
}
.brand {
  font: 300 18px/1 var(--font-en);
  color: rgba(235,232,245,0.92); letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.auth-card {
  width: 100%; max-width: 420px;
  padding: 32px 28px;
  background: rgba(16,20,42,0.68);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 48px -18px rgba(8,6,26,0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  margin: 0 16px;
  opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards;
}
@media (min-width: 800px) { .auth-card { padding: 40px 42px; max-width: 476px; } }
@media (prefers-reduced-motion: reduce) { .auth-card { opacity: 1; animation: none; } }
.auth-title {
  font: 700 34px/1.15 var(--font-display); color: rgba(230,225,245,0.95);
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.auth-sub {
  font: 300 18px/1.5 var(--font-en);
  color: rgba(190,185,215,0.78); letter-spacing: 0.02em;
  margin-bottom: 32px;
}
/* The words a trial keeps, on the sign-up form (new): the level picker's stat line
   (site-level.css .cal-done__stat), its count in the accent. */
.auth-keep {
  font: 300 14px/1.5 var(--font-en);
  color: var(--cal-ink-muted); letter-spacing: 0.02em;
  margin: -18px 0 24px;
}
.auth-keep strong { color: var(--cal-accent); font-weight: 600; }
.auth-field { margin-bottom: 20px; }
.auth-label {
  display: block;
  font: 400 14px/1 var(--font-en);
  color: rgba(190,185,215,0.78); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
}
.auth-input {
  width: 100%; padding: 14px 16px;
  font: 300 18px/1.3 var(--font-en);
  color: rgba(230,225,245,0.95); background: rgba(10,13,32,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.auth-input:focus { border-color: var(--primary-soft); }
.auth-input::placeholder { color: rgba(160,155,190,0.55); }
.auth-submit {
  width: 100%; padding: 16px;
  font: 400 16px/1 var(--font-en);
  letter-spacing: 0.08em;
  background: var(--coral-tint); color: rgba(250,240,234,0.95);
  border: 1px solid rgba(236,149,114,0.45); border-radius: var(--radius-lg);
  cursor: pointer; transition: background 0.2s;
  margin-top: 12px;
}
.auth-submit:hover { background: rgba(236,149,114,0.20); border-color: rgba(236,149,114,0.72); color: #fff; }
/* A link styled as the card button (email_link.html, aag-2203). */
a.auth-submit { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
/* Locked after one press (site-lock-button.js), or while Sign up waits for the Turnstile token
   (aag-2123). */
.auth-submit:disabled { opacity: 0.45; cursor: default; pointer-events: none; }
/* Breathing room between a visible Turnstile check and the button below. */
.auth-turnstile { margin-top: var(--sp-3); }
.auth-links {
  margin-top: 12px;
  font: 300 14px/1.5 var(--font-en);
  color: rgba(170,165,198,0.45); text-align: center;
}
.auth-links a, .auth-links .auth-link-btn {
  display: inline-block; padding: 10px 8px;
  color: rgba(198,193,222,0.72); text-decoration: none; transition: color 0.2s;
}
.auth-links a:hover, .auth-links .auth-link-btn:hover { color: #9290c4; }
.auth-links form { display: inline; margin: 0; }
.auth-links .auth-link-btn { background: none; border: none; font: inherit; cursor: pointer; }
.auth-error {
  background: rgba(200,50,50,0.15);
  border: 1px solid rgba(200,50,50,0.25);
  padding: 10px 14px; margin-bottom: 18px;
  font: 300 14px/1.4 var(--font-en);
  color: #e8a0a0;
}
.auth-input:focus-visible, .auth-submit:focus-visible, .auth-links a:focus-visible,
.auth-links .auth-link-btn:focus-visible, .brand:focus-visible, .site-shows a:focus-visible {
  outline: 2px solid var(--primary-soft); outline-offset: 2px;
}

/* The home page's show list (new): rows in the card's own glass, the button's coral edge. */
.site-shows { list-style: none; margin: 24px 0 8px; }
.site-shows a {
  display: block; padding: 14px 16px; margin-bottom: 10px;
  font: 400 18px/1.3 var(--font-en); color: rgba(230,225,245,0.95); text-decoration: none;
  background: rgba(10,13,32,0.5); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); transition: border-color 0.2s, background 0.2s;
}
.site-shows a:hover { border-color: rgba(236,149,114,0.55); background: var(--coral-tint); }
/* A show's study mode (Listening (N)): a smaller row tucked under its show. */
.site-shows a.site-mode {
  display: inline-block; min-height: 44px; margin: -2px 0 12px 20px; padding: 11px 14px;
  font-size: 15px;
}
