/* ── Auth gate ── */
[hidden] { display: none !important; }

#auth-gate {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 9999;
}

.auth-logo {
  width: 180px;
  max-width: 60vw;
}

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 260px;
  max-width: 90vw;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: #111;
  border: 1px solid #333;
  border-radius: 2px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-align: center;
  outline: none;
  transition: border-color 200ms;
}

.auth-input:focus {
  border-color: #fff;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 200ms;
}

.auth-btn:hover {
  opacity: 0.85;
}

.auth-error {
  font-size: 12px;
  color: #e05;
  letter-spacing: 0.04em;
}

.auth-btn--loading {
  position: relative;
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-btn--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}
