/* signin/polish.css — sign-in page micro-interactions
 * Loaded after components.css; overrides are scoped via [data-route="/signin"].
 * Respects prefers-reduced-motion throughout.
 */

/* ─── FORM ERROR ENTRANCE ───────────────────────────────────────────────── */
@keyframes si-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-formerr.show {
  animation: si-fadeInUp 0.3s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .auth-formerr.show {
    animation: none;
  }
}

/* ─── SUBMIT BUTTON LOADING STATE ───────────────────────────────────────── */
/* Transition so opacity change on disable feels intentional */
#submit-btn {
  transition: opacity var(--sns-dur-base, 0.18s) ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Rotating spinner injected by JS as a sibling span inside the button */
.si-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: si-spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .si-spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.6);
  }
}
