/* Wizengamot Oath — Frontend Experience Access Gate */
body.auth-locked {
  overflow: hidden;
}

.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(640px circle at 20% 20%, rgba(214, 178, 110, 0.12), transparent 60%),
    radial-gradient(720px circle at 80% 80%, rgba(122, 28, 38, 0.18), transparent 60%),
    linear-gradient(160deg, #0b0912 0%, #07060b 55%, #120d1a 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 1;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.auth-gate-overlay.auth-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-gate-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 30px;
  border-radius: 16px;
  background: rgba(18, 14, 26, 0.92);
  border: 1px solid rgba(214, 178, 110, 0.35);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(245, 222, 168, 0.08) inset,
    0 0 40px rgba(214, 178, 110, 0.08);
  text-align: center;
  position: relative;
}

.auth-gate-card.shake {
  animation: authShake 0.4s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.auth-gate-crest {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brass, #d6b26e);
  background: radial-gradient(circle, rgba(122, 28, 38, 0.75), rgba(18, 13, 24, 0.95));
  color: var(--brass-bright, #f5dea8);
  font-size: 24px;
  box-shadow: 0 0 24px rgba(214, 178, 110, 0.25);
}

.auth-gate-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass, #d6b26e);
}

.auth-gate-title {
  margin: 0 0 6px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main, #f6efe2);
  letter-spacing: 0.06em;
}

.auth-gate-sub {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--text-muted, #b9ad96);
  line-height: 1.5;
}

.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

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

.auth-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--brass-bright, #f5dea8);
  letter-spacing: 0.04em;
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(214, 178, 110, 0.28);
  background: rgba(8, 7, 13, 0.85);
  color: var(--text-main, #f6efe2);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder {
  color: rgba(185, 173, 150, 0.45);
}

.auth-field input:focus {
  border-color: var(--brass, #d6b26e);
  box-shadow: 0 0 0 3px rgba(214, 178, 110, 0.16);
}

.auth-error {
  min-height: 18px;
  margin: 0;
  font-size: 12.5px;
  color: #ff7b7b;
  text-align: center;
}

.auth-submit-btn {
  margin-top: 2px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--brass, #d6b26e);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(122, 28, 38, 0.92), rgba(164, 118, 46, 0.85));
  color: #fff8e7;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px rgba(214, 178, 110, 0.28);
}

.auth-submit-btn:active {
  transform: scale(0.985);
}

.auth-gate-footer {
  margin: 18px 0 0;
  font-size: 11.5px;
  color: rgba(185, 173, 150, 0.65);
}
