/**
 * Splash de arranque — visível até o Vue montar em #app.
 * Cor primária da plataforma + logo branca + animações leves.
 */

.app-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  margin: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #008001;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(0, 0, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  animation: appBootBg 10s ease-in-out infinite;
}

@keyframes appBootBg {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.06) saturate(1.05);
  }
}

.app-boot-splash__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
}

.app-boot-splash__ring {
  position: absolute;
  width: min(42vw, 200px);
  height: min(42vw, 200px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  animation: appBootRing 2.8s ease-out infinite;
}

.app-boot-splash__ring--delayed {
  animation-delay: 0.85s;
  border-color: rgba(255, 255, 255, 0.06);
}

@keyframes appBootRing {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.app-boot-splash__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: min(72vw, 220px);
  height: auto;
  max-height: 3.5rem;
  object-fit: contain;
  animation: appBootLogo 2.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.2));
}

@keyframes appBootLogo {
  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  45% {
    transform: scale(1.045) translateY(-2px);
    opacity: 1;
  }
  55% {
    transform: scale(1.02) translateY(0);
  }
}

.app-boot-splash__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-boot-splash__dots span {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  animation: appBootDot 1.25s ease-in-out infinite;
}

.app-boot-splash__dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.app-boot-splash__dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes appBootDot {
  0%,
  70%,
  100% {
    transform: translateY(0) scale(0.75);
    opacity: 0.45;
  }
  35% {
    transform: translateY(-6px) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot-splash,
  .app-boot-splash__ring,
  .app-boot-splash__logo,
  .app-boot-splash__dots span {
    animation: none !important;
  }

  .app-boot-splash__ring {
    opacity: 0.35;
    transform: scale(1);
  }
}
