/*
 * The public form's static loader: painted by the HTML itself, before any JS runs, and
 * removed by the page once its content is ready (public-form-page.tsx). A spinner,
 * not a skeleton. Light/dark follows the theme class `theme-bootstrap.js` puts on <html>,
 * else the visitor's system setting. Also used by `BootSpinner` (React) for lazy parts.
 */
#boot-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.boot-spinner {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.55);
  animation: boot-spin 0.8s linear infinite;
}

@media (prefers-color-scheme: dark) {
  html:not(.light) .boot-spinner {
    border-color: rgba(255, 255, 255, 0.16);
    border-top-color: rgba(255, 255, 255, 0.7);
  }
}

html.dark .boot-spinner {
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.7);
}

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

@media (prefers-reduced-motion: reduce) {
  .boot-spinner {
    animation-duration: 2.4s;
  }
}
