/* Initial load screen (matches landing-page boot loader) */

html.light {
  --primary: 8, 70, 166;
  --background-tertiary: 245, 245, 245;
  --border: 212, 212, 212;
  --text-secondary: 143, 146, 161;
  --radius: 0.5rem;
}

html.dark {
  --primary: 59, 130, 246;
  --background-tertiary: 24, 30, 42;
  --border: 55, 65, 81;
  --text-secondary: 156, 163, 175;
  --radius: 0.5rem;
}

body.boot-loading {
  overflow: hidden;
}

body.boot-loading #root {
  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;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.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));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.boot-loader-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgb(var(--text-secondary));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.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);
  }
}
