/* Initial app bootstrap loaders (index.html, before Angular boots).
 *
 * Classic path keeps using .page-center / .page-loading (scaffolding) —
 * these --classic rules are only a self-contained fallback if needed.
 * Do not style #sm-bootstrap-loader .page-center / .page-loading here —
 * that would change the classic splash when the Modern UI flag is off.
 *
 * Modern path is selected when localStorage clientInfo.modernUiUxEnabled is true.
 * Modern critical rules are also inlined in index.html so hard refresh cannot
 * paint an unstyled modern splash; keep both copies in sync.
 */

.bootstrap-loader--classic.page-center {
  text-align: center;
  height: 100px;
  width: 300px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

.bootstrap-loader--classic.page-loading {
  font-family: "vista-sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bootstrap-loader--classic.page-loading i {
  color: #10899c;
}

.bootstrap-loader--modern {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #f7f7f5;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1c2434;
}

.bootstrap-loader--modern *,
.bootstrap-loader--modern *::before,
.bootstrap-loader--modern *::after {
  box-sizing: border-box;
}

.bootstrap-loader--modern .bootstrap-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 22rem;
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  border-radius: 1.125rem;
  border: 1px solid #e6e9ef;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 20px 50px -24px rgba(28, 36, 52, 0.22);
}

.bootstrap-loader--modern .bootstrap-loader__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Cap wordmark — SVG can otherwise paint huge before other CSS arrives. */
.bootstrap-loader--modern .bootstrap-loader__logo {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: 11.5rem;
}

.bootstrap-loader--modern .bootstrap-loader__mark {
  display: block;
  width: 2.75rem;
  height: 0.2rem;
  border-radius: 9999px;
  background: #10899c;
}

.bootstrap-loader--modern .bootstrap-loader__spinner {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border: 2px solid rgba(16, 137, 156, 0.22);
  border-top-color: #10899c;
  border-radius: 50%;
  animation: bootstrap-loader-spin 0.8s linear infinite;
}

.bootstrap-loader--modern .bootstrap-loader__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #6b7280;
}

html.dark .bootstrap-loader--modern {
  background: #0a0a0a;
  color: #f5f5f5;
}

html.dark .bootstrap-loader--modern .bootstrap-loader__inner {
  border-color: #262626;
  background: #141414;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.55);
}

html.dark .bootstrap-loader--modern .bootstrap-loader__logo {
  filter: brightness(0) invert(1);
}

html.dark .bootstrap-loader--modern .bootstrap-loader__text {
  color: #a3a3a3;
}

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