/* ---- Auth gate ---- */
.auth-gate {
  position: fixed;
  inset: 0;
  background: #f8f6f1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.auth-gate.hidden { display: none; }

.auth-box {
  text-align: center;
  max-width: 320px;
  padding: 0 20px;
}

.auth-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 28px;
  opacity: 0.92;
}

.auth-box h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a2b3a;
  margin-bottom: 8px;
}

.auth-box p {
  font-size: 15px;
  color: #5a6470;
  margin-bottom: 24px;
}

.auth-box input {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  padding: 10px 14px;
  border: 1px solid #d4cfc4;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.auth-box input:focus {
  border-color: #2a4a6e;
}

.auth-box input.error {
  border-color: oklch(0.55 0.15 25);
}

body.content-hidden > *:not(.auth-gate) {
  display: none !important;
}
