.auth-dropdown-wrapper {
  position: relative;
}

.auth-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 30;
}

.auth-dropdown {
  position: absolute;
  z-index: 40;
  margin-top: 0.5rem;
  min-width: 16rem;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 0.25rem;
}

[data-mantine-color-scheme="dark"] .auth-dropdown {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.auth-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: #000;
  cursor: pointer;
}

[data-mantine-color-scheme="dark"] .auth-dropdown-item {
  color: var(--text-primary);
}

.auth-guest-button {
  background-color: #ffffff;
  color: #9c2f30;
  border: 2px solid currentColor;
}

[data-mantine-color-scheme="dark"] .auth-guest-button {
  background-color: transparent;
}

/* ── Logo block ─────────────────────────────────────────────────────── */
.auth-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
  animation: authFadeUp 0.4s ease both;
}

.auth-logo-header {
  height: 8rem;
  width: auto;
}

/* ── Page entrance animation ────────────────────────────────────────── */
@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Expandable trigger button state ────────────────────────────────── */
.auth-expandable-trigger {
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.auth-expandable-trigger--active {
  border-color: #af3434 !important;
  box-shadow: 0 0 0 3px rgba(175, 52, 52, 0.12);
}

/* ── Animated expand/collapse via grid-template-rows ───────────────── */
.auth-expand-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 220ms ease;
  opacity: 0;
}

.auth-expand-grid--open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.auth-expand-inner {
  overflow: hidden;
  min-height: 0;
}

/* ── Icon+label group — keeps icons vertically aligned across buttons ── */
.oauth-btn-group {
  display: inline-flex;
  align-items: center;
  min-width: 12.5rem;
}

.oauth-btn-label {
  flex: 1;
  text-align: center;
}

/* ── Icon helpers inside oauth-button-fullwidth ─────────────────────── */
.auth-at-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 0.5rem;
  display: inline-block;
  width: 1.75rem;
  text-align: center;
  flex-shrink: 0;
}
