/* Launch layer (index.html) and the login/logout transition screen
   (AppTransitionScreen.vue). Linked in <head> before any script, so the layer
   is styled from the very first paint in every environment (dev server, slow
   first download, Android WebView). Plain colours only: the theme variables
   live in main.css, which can arrive later. */

.app-boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color: #f1f5f9;
  transition: opacity 180ms ease-out;
}

.dark .app-boot {
  background-color: #0f172a;
}

.app-boot--hide {
  opacity: 0;
  pointer-events: none;
}

.app-boot__logo {
  display: block;
  width: 64px;
  height: 64px;
  flex: none;
}

.app-boot__check {
  stroke: #3730a3;
}

.dark .app-boot__check {
  stroke: #ffffff;
}

.app-boot__name {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #4f46e5;
}

/* Lighter indigo keeps the name and bar readable on the dark surface. */
.dark .app-boot__name {
  color: #818cf8;
}

.app-boot__label {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.dark .app-boot__label {
  color: #94a3b8;
}

.app-boot__track {
  width: 96px;
  height: 3px;
  overflow: hidden;
  border-radius: 9999px;
  background-color: #e2e8f0;
}

.dark .app-boot__track {
  background-color: #334155;
}

.app-boot__bar {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background-color: #4f46e5;
}

.dark .app-boot__bar {
  background-color: #818cf8;
}

/* Screen-reader text without depending on the Tailwind build. */
.app-boot__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .app-boot__bar {
    animation: app-boot-slide 1.1s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot {
    transition: none;
  }
}

@keyframes app-boot-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
