/* ---------------------------------------------------------------------------
   loading.css — loading state for the login / signup submit buttons.
   Added by app.js (setBusy): the button gets `.is-loading` + `disabled`, and a
   `.slow-hint` message appears if the server takes more than a few seconds.
   Uses currentColor, so the spinner matches whatever button colour you use.
--------------------------------------------------------------------------- */

button.is-loading {
  position: relative;
  cursor: progress;
  opacity: 0.85;
}

button.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.55em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tt-spin 0.7s linear infinite;
}

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

.auth-form input[readonly] {
  opacity: 0.7;
}

.slow-hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #f2cc60;
}
.slow-hint.is-hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  button.is-loading::before { animation-duration: 2s; }
}