/* Login gate. The timeline is fully rendered underneath; this sits on top with a
   blur, and on success the box fades to 0 over 1s while the blur lifts over 1s —
   so the timeline is revealed rather than swapped in. */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 9, 12, 0.35);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  transition: opacity 1s ease, backdrop-filter 1s ease, -webkit-backdrop-filter 1s ease;
  will-change: opacity, backdrop-filter;
}

.gate.leaving {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.gate-box {
  width: min(320px, 84vw);
  display: grid;
  gap: 12px;
  text-align: center;
  background: rgba(14, 17, 22, 0.74);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
}

.gate-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.gate-box h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
}

.gate-box label {
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.gate-box input {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.85);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
}
.gate-box input:focus { outline: none; border-color: var(--accent); }

.gate-box button {
  margin-top: 4px;
  padding: 12px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #1a1206;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gate-box button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(232, 176, 106, 0.75); }

.gate-error {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #e08a8a;
}

/* while the gate is up, the page behind it doesn't scroll */
html.gated,
html.gated body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .gate { transition: opacity 0.2s linear; }
  .gate.leaving { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
