/* Boot loader: shown from the first paint on load / refresh until the app mounts and replaces #root.
   Plain CSS (no Tailwind) because it renders before the app's stylesheet loads; same look as RouteLoader. */
html,
body {
  margin: 0;
  background: #eef3f9;
}
.boot {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #0f1b2d;
  background: radial-gradient(60% 60% at 50% 48%, #ffffff, #e9f0f8);
  animation: boot-in 0.25s ease-out;
}
.boot-bar {
  position: absolute;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  border-bottom-left-radius: 3px;
  background: linear-gradient(to left, #19c3ff, #1172e8);
  box-shadow: 0 0 10px rgb(25 195 255 / 0.7);
  animation: boot-bar 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.boot-stage {
  position: relative;
  width: 300px;
  height: 260px;
}
.boot-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(25 195 255 / 0.34), transparent 66%);
  animation: boot-pulse 1.4s ease-in-out infinite;
}
.boot-stage svg {
  position: absolute;
  inset: 0;
}
.boot-trail {
  animation: boot-trail 1.4s linear infinite;
}
.boot-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  margin: -66px 0 0 -66px;
  filter: drop-shadow(0 16px 24px rgb(11 95 208 / 0.28));
}
.boot-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.boot-label {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.boot-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
  min-height: 1em;
}
.boot-dots {
  margin-top: 16px;
  display: flex;
  gap: 6px;
}
.boot-dots span {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: #1172e8;
  animation: boot-dot 1.2s ease-in-out infinite;
}
.boot-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.boot-dots span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes boot-in {
  from {
    opacity: 0;
  }
}
@keyframes boot-bar {
  to {
    width: 85%;
  }
}
@keyframes boot-trail {
  to {
    stroke-dashoffset: -588;
  }
}
@keyframes boot-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}
@keyframes boot-dot {
  0%,
  100% {
    width: 6px;
    opacity: 0.3;
  }
  40% {
    width: 20px;
    opacity: 1;
  }
}
@media (max-width: 420px) {
  .boot-stage {
    transform: scale(0.82);
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot,
  .boot-bar,
  .boot-trail,
  .boot-glow,
  .boot-dots span {
    animation: none;
  }
  .boot-bar {
    width: 60%;
  }
}
