.auth-modal-backdrop {
  opacity: 0;
  transition: opacity 180ms ease;
}

.auth-modal-panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  opacity: 0;
  transform: translateY(0.5rem) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.auth-tab[aria-selected="true"] {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

#auth-modal.auth-modal-visible .auth-modal-backdrop {
  opacity: 1;
}

#auth-modal.auth-modal-visible .auth-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.auth-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal-backdrop,
  .auth-modal-panel {
    transition: none;
  }
}
