#ewms-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #eff6ff 0%, #dbeafe 42%, #c7d2fe 100%);
  transition: opacity 180ms ease-out;
}

html.dark #ewms-boot-splash,
html.ewms-dark-active #ewms-boot-splash {
  background: linear-gradient(145deg, #020617 0%, #0f172a 45%, #1e1b4b 100%);
}

#ewms-boot-splash[hidden] {
  display: none !important;
}

#ewms-boot-splash.ewms-boot-splash-out {
  opacity: 0;
  pointer-events: none;
}

#ewms-boot-splash .ewms-boot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#ewms-boot-splash .ewms-boot-logistics {
  position: relative;
  width: 58px;
  height: 42px;
}

#ewms-boot-splash .ewms-boot-morph {
  position: absolute;
  width: 30px;
  height: 30px;
  left: 14px;
  top: 6px;
  color: #0f172a;
  opacity: 0.25;
  animation: ewms-morph-step 2800ms ease-in-out infinite;
}

html.dark #ewms-boot-splash .ewms-boot-morph,
html.ewms-dark-active #ewms-boot-splash .ewms-boot-morph {
  color: #bfdbfe;
}

#ewms-boot-splash .ewms-boot-morph:nth-child(2) {
  animation-delay: -2100ms;
}

#ewms-boot-splash .ewms-boot-morph:nth-child(3) {
  animation-delay: -1400ms;
}

#ewms-boot-splash .ewms-boot-morph:nth-child(4) {
  animation-delay: -700ms;
}

#ewms-boot-splash .ewms-boot-morph svg {
  width: 100%;
  height: 100%;
  display: block;
}

#ewms-boot-splash .ewms-boot-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f172a;
  font-family: "Plus Jakarta Sans Variable", ui-sans-serif, system-ui, sans-serif;
}

html.dark #ewms-boot-splash .ewms-boot-label,
html.ewms-dark-active #ewms-boot-splash .ewms-boot-label {
  color: #e2e8f0;
}

@keyframes ewms-morph-step {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.9);
  }
  10% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  25% {
    opacity: 0;
    transform: translateY(-4px) scale(0.92);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px) scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  #ewms-boot-splash .ewms-boot-morph {
    animation: none;
    opacity: 0;
  }

  #ewms-boot-splash .ewms-boot-morph:first-child {
    opacity: 1;
    transform: none;
  }
}
