/* =======================================================
   Animations
   ======================================================= */
@keyframes draw-pulse {
  0% {
    stroke-dashoffset: 340;
  }
  55% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -340;
  }
}
@keyframes dot-glow {
  0%,
  100% {
    opacity: 0.35;
    r: 3;
  }
  50% {
    opacity: 1;
    r: 4.5;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toast-in {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toast-out {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Authentication page entrance --- */
@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Animate the shell without moving fixed-position toast notifications. */
.shell {
  animation: page-fade-in 0.32s var(--ease) both;
}

/* Native cross-document view transition for browsers that support it. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
