.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 22, 0.78);
  backdrop-filter: blur(18px);
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app,
body.auth-locked .response-modal,
body.auth-locked .debate3-modal {
  visibility: hidden;
  pointer-events: none;
}

body.auth-locked .auth-gate {
  display: flex;
}

.auth-card {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(13, 21, 37, 0.96);
  box-shadow: 0 35px 65px rgba(2, 6, 23, 0.46);
}

.auth-kicker {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.42);
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.auth-card p {
  margin: -8px 0 4px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(6, 10, 22, 0.86);
  color: var(--text-primary);
  font: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.78);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

#auth-submit {
  margin-top: 4px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, #6366f1, #06b6d4);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-status {
  min-height: 22px;
  color: #fca5a5;
  font-size: 0.9rem;
}

.auth-status.auth-status-ok {
  color: #86efac;
}

.auth-logout {
  white-space: nowrap;
}
