/* Splash de marca: primeiro paint (index.html) e overlay React pós-login. */

.brand-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, #0a5560 0%, #003848 48%, #00151c 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.brand-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-splash__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(420px, 86vw);
}

.brand-splash__rays,
.brand-splash__rays--slow,
.brand-splash__glow {
  position: absolute;
  left: 50%;
  top: 42%;
  translate: -50% -50%;
  pointer-events: none;
}

.brand-splash__rays,
.brand-splash__rays--slow {
  width: min(150vw, 920px);
  height: min(150vw, 920px);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(71, 194, 186, 0) 0deg 9deg,
    rgba(71, 194, 186, 0.16) 11deg 15deg,
    rgba(71, 194, 186, 0) 17deg 24deg
  );
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 8%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 8%, transparent 66%);
  animation: brand-splash-spin 18s linear infinite;
}

.brand-splash__rays--slow {
  opacity: 0.45;
  width: min(170vw, 1100px);
  height: min(170vw, 1100px);
  animation-duration: 36s;
  animation-direction: reverse;
}

.brand-splash__glow {
  width: min(52vw, 280px);
  height: min(52vw, 280px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 152, 144, 0.45) 0%, rgba(16, 152, 144, 0) 70%);
  animation: brand-splash-pulse 2.4s ease-in-out infinite;
}

.brand-splash__logo-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.brand-splash__logo {
  width: min(280px, 72vw);
  height: auto;
  display: block;
  object-fit: contain;
  /* A PNG da marca tem fundo escuro; mistura com o splash para não parecer um retângulo. */
  mix-blend-mode: lighten;
  filter: drop-shadow(0 12px 36px rgba(16, 152, 144, 0.35));
  animation: brand-splash-logo-in 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-splash__shimmer {
  position: absolute;
  inset: -8% -20%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  animation: brand-splash-shimmer 1.6s ease-in-out 0.55s both;
}

.brand-splash__caption {
  position: relative;
  z-index: 2;
  margin: 1.35rem 0 0;
  color: rgba(175, 232, 227, 0.88);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  animation: brand-splash-caption-in 0.7s ease 0.65s both;
}

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

@keyframes brand-splash-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes brand-splash-logo-in {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes brand-splash-shimmer {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes brand-splash-caption-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-splash__rays,
  .brand-splash__rays--slow,
  .brand-splash__glow,
  .brand-splash__logo,
  .brand-splash__shimmer,
  .brand-splash__caption {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .brand-splash {
    transition-duration: 0.15s;
  }
}
