/* Guest auto-login (js/guest-login.js). Layered after Core's prekit.css. */

/* While the guest login is pending the whole sign-in block is hidden: the
   form, and with an identity provider also its button, the "or" divider and
   the collapsed email section (Core's login.ftl wraps them all in #kc-form).
   The notice stands above it. The staff link brings it back. */
.choc2-guest-pending #kc-form {
  display: none;
}

/* In the card, where the sign-in options were, with a small spinner: the page is
   working, not empty. */
.choc2-guest-notice {
  margin: 0 0 1rem;
  padding: 1.5rem 0;
  text-align: center;
}

.choc2-guest-notice::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.75rem;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.6;
  animation: choc2-spin 0.9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .choc2-guest-notice::before { animation: none; }
}

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

.choc2-staff-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}
