body.auth-locked #app,
body.auth-locked #modal-root,
body.auth-locked #toast-root,
body.auth-locked #dev-panel-root {
  visibility: hidden;
  pointer-events: none;
}

#auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--navy);
}

#auth-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(184, 150, 58, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(59, 130, 246, 0.06), transparent);
  pointer-events: none;
}

.auth-gate__card {
  position: relative;
  width: min(100%, 400px);
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  background: linear-gradient(160deg, var(--navy-elevated) 0%, var(--navy-mid) 100%);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.auth-gate__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 12px;
}

.auth-gate__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 8px;
}

.auth-gate__sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.auth-gate__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-gate__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.auth-gate__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
}

.auth-gate__input:focus {
  outline: none;
  border-color: var(--gold-soft);
}

.auth-gate__error {
  font-size: 13px;
  color: var(--red);
}

.auth-gate__submit {
  margin-top: 8px;
  width: 100%;
}
