/* ============================================================
   LOGIN — half-bleed layout. Left: Jeopardy! board surface
   with a subtle dollar-value column pattern + a few real
   category tiles. Right: sign-in card in the active theme.
   ============================================================ */
html, body { min-height: 100%; }

.lg-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  width: 100%;
}

/* ── Left: the board ─────────────────────────────────── */
.lg-board {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(160deg, #0a1d6e 0%, #060CE9 55%, #050a8a 100%);
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* faint $200–$1000 column ladder behind the content */
.lg-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(100% / 6 - 1px),
    rgba(255,255,255,.05) calc(100% / 6 - 1px),
    rgba(255,255,255,.05) calc(100% / 6)
  );
  pointer-events: none;
}

.lg-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: -.02em;
  line-height: 1;
  color: #fbbf24;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.lg-mark .ampm {
  font-style: normal;
  font-weight: 600;
  font-size: .26em;
  letter-spacing: .18em;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  margin-left: 14px;
  align-self: center;
  position: relative;
  top: -.55em;
}

/* big editorial pull quote */
.lg-quote {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-top: clamp(48px, 8vw, 96px);
}
.lg-quote-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.022em;
  color: #ffffff;
  text-wrap: balance;
}
.lg-quote-lead em {
  font-style: italic;
  color: #fbbf24;
  font-weight: 600;
}
.lg-quote-sub {
  margin-top: 18px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  max-width: 420px;
  text-wrap: pretty;
}

/* row of mini board tiles flipping in */
.lg-tiles {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 520px;
  margin-top: clamp(36px, 6vw, 56px);
}
.lg-tile {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #0d2280 0%, #060CE9 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0;
  transform: rotateY(90deg);
  animation: lg-tile-in .55s cubic-bezier(.4,.1,.2,1) forwards;
}
.lg-tile-amt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: #fbbf24;
  font-size: clamp(16px, 2.2vw, 22px);
  text-shadow: 0 2px 5px rgba(0,0,0,.5);
  letter-spacing: -.01em;
}
.lg-tile:nth-child(1) { animation-delay: .15s; }
.lg-tile:nth-child(2) { animation-delay: .22s; }
.lg-tile:nth-child(3) { animation-delay: .29s; }
.lg-tile:nth-child(4) { animation-delay: .36s; }
.lg-tile:nth-child(5) { animation-delay: .43s; }
.lg-tile:nth-child(6) { animation-delay: .50s; }
@keyframes lg-tile-in {
  from { opacity: 0; transform: rotateY(90deg) scale(.92); }
  to   { opacity: 1; transform: rotateY(0)   scale(1);    }
}

.lg-footer {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.lg-footer a { color: rgba(255,255,255,.85); border-bottom: 1px dotted rgba(255,255,255,.4); padding-bottom: 1px; }
.lg-footer a:hover { text-decoration: none; color: #fbbf24; border-bottom-color: #fbbf24; }

/* ── Right: the sign-in card ──────────────────────────── */
.lg-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
  position: relative;
  background: var(--bg);
}

.lg-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lg-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.lg-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.lg-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.lg-sub {
  color: var(--text-dim);
  font-size: 15.5px;
  text-wrap: pretty;
  margin: 0;
}

.lg-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .005em;
  cursor: pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.lg-google:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-card);
}
.lg-google:active { transform: translateY(1px); }
.lg-google svg { flex: 0 0 20px; }

.lg-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: -4px;
}
.lg-divider::before, .lg-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lg-why {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.lg-why-icon {
  flex: 0 0 18px;
  color: var(--accent);
  margin-top: 1px;
}
.lg-why b { color: var(--text); font-weight: 600; }

.lg-fine {
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
  margin: 0;
  text-wrap: pretty;
}
.lg-fine a { color: var(--text-dim); border-bottom: 1px dotted var(--text-faint); padding-bottom: 1px; }
.lg-fine a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* theme toggle in the corner */
.lg-theme-toggle {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.lg-theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.lg-theme-toggle:active { transform: scale(.94); }

/* ── Loading overlay ─────────────────────────────────── */
#lgLoader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Responsive: stack on narrow viewports ─────────────── */
@media (max-width: 920px) {
  .lg-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .lg-board {
    padding: 36px 28px 40px;
    min-height: 360px;
  }
  .lg-quote { margin-top: 28px; }
  .lg-quote-lead { font-size: clamp(26px, 7vw, 36px); }
  .lg-quote-sub { font-size: 14px; }
  .lg-tiles { margin-top: 28px; max-width: 100%; }
  .lg-footer { margin-top: 32px; }
  .lg-panel {
    padding: 40px 24px 56px;
    min-height: auto;
  }
}
@media (max-width: 480px) {
  .lg-board { padding: 28px 22px 32px; }
  .lg-mark { font-size: 56px; }
  .lg-mark .ampm { font-size: 13px; margin-left: 10px; }
  .lg-tiles { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .lg-tile-amt { font-size: 12px; }
  .lg-card { gap: 20px; }
  .lg-title { font-size: 30px; }
  .lg-google { height: 48px; font-size: 14.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lg-tile { animation: none; opacity: 1; transform: none; }
}
