/* Initial load screen, matches admin-portal AuthBootstrap */

body.boot-loading {
  overflow: hidden;
}

body.boot-loading .boot-loader-host > :not(#boot-loader) {
  visibility: hidden;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgb(var(--background-tertiary));
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.boot-loader--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-loader-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.boot-loader-brand img,
.boot-loader-brand svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.boot-loader-wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--primary));
  line-height: 1;
}

.boot-loader-beta {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius, 0.375rem);
  background: rgba(var(--primary), 0.1);
  color: rgb(var(--primary));
}

.boot-loader-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgb(var(--text-secondary));
}

.boot-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(var(--border));
  border-top-color: rgb(var(--primary));
  border-radius: 50%;
  animation: boot-spin 0.7s linear infinite;
}

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