/* ── Auth modal ── */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 8, 12, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 121;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal-card {
  position: relative;
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14,17,24,0.56), rgba(18,22,30,0.38));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 60px rgba(0,0,0,0.24), 0 0 50px rgba(211,52,47,0.05);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: rgba(244,247,251,0.86);
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
}

.auth-modal-close:hover {
  background: rgba(255,255,255,0.14);
}

.auth-modal-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-strong);
}

.auth-modal-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(235,238,242,0.8);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

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

.auth-field span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,247,251,0.68);
}

.auth-field input {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(9,12,18,0.84);
  color: var(--text-strong);
  font: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(211,52,47,0.42);
  box-shadow: 0 0 0 3px rgba(211,52,47,0.12);
}

.auth-feedback {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244,247,251,0.78);
}

.auth-feedback.is-error {
  color: #ff8b88;
}

.auth-feedback.is-success {
  color: #cfd8dd;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-submit,
.auth-cancel {
  border: 0;
  cursor: pointer;
}

.auth-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}
