/*
 * styles/animations.css
 * Keyframes e classes de animação reutilizáveis.
 */

/* ── Entrada de elementos ───────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Classes utilitárias ────────────────────────────────────────── */

.animate-fade-in-up {
  animation: fadeInUp 0.35s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.25s ease both;
}

/* Card entra com leve rise */
.card {
  animation: fadeInUp 0.4s ease both;
}

/* Screens trocam com fade */
.screen.active {
  animation: fadeIn 0.22s ease both;
}

/* Error banner aparece com slide */
.auth-error.visible {
  animation: fadeInUp 0.2s ease both;
}

/* Spinner para botões em estado loading */
.btn-loading-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
