/* Shared by the HTML bootstrap and React; available before the application bundle.
   Versioned independently so cached pages retain their matching loading styles. */
html, body, #root { min-height: 100%; margin: 0; }

html:root .access-loading {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 90;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: #fff;
  color: #667085;
  font: 400 14px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

html:root .access-loading--overlay { z-index: 140; }

html:root .access-loading__copy {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(420px, 100%);
}

html:root .access-loading__logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}

html:root .access-loading__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

html:root .access-loading__status strong {
  color: #667085;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html:root .access-loading__copy small {
  max-width: 360px;
  margin-top: -16px;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

html:root .access-loading__spinner {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

html:root .access-loading__spinner > span {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #e5edfa;
  border-top-color: #005bd6;
  border-right-color: #005bd6;
  border-radius: 50%;
  animation: access-loading-spin .85s linear infinite;
}

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

html:root[data-motion="off"] .access-loading__spinner > span { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html:root .access-loading__spinner > span { animation: none; }
}
