/* =========================
   Guest Animations
   ========================= */

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert {
  animation: fadeSlide 0.35s ease-out;
}

/* Soft page transitions — native View Transitions (no JS, no loader flash) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
  animation-name: guest-vt-fade-out;
}

::view-transition-new(root) {
  animation-name: guest-vt-fade-in;
}

@keyframes guest-vt-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes guest-vt-fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* =========================
   Guest Layout
   ========================= */

.auth-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: none;
}

.auth-logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.auth-input {
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* =========================
   Buttons (structure only)
   ========================= */

.auth-btn {
  width: 100%;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.65rem;
  border-radius: 0.5rem;
  border: none;
  color: #fff;
  transition: background 0.2s ease, transform 0.1s ease;
}

.auth-btn i {
  margin-right: 0.5rem;
}

.auth-btn:active {
  transform: scale(0.98);
}

/* =========================
   Footer
   ========================= */

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

/* =========================
   Language switcher (guest)
   ========================= */

.zen-guest-topbar {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1040;
}

.zen-lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px !important;
  padding: 0.35rem 0.65rem !important;
}

.zen-lang-flag {
  display: block;
  border-radius: 2px;
  object-fit: cover;
}

/* Måste vinna över whitelabel: body a { color: var(--brand-primary) !important } */
body:not(.sa-editor-template) .auth-photo-credit a,
body:not(.sa-editor-template) .auth-photo-credit a:hover {
  color: inherit !important;
}