/**
 * Shared splash preloader (login + e-commerce admin dashboard).
 * Brand colors match public/assets/images/logo.svg
 */
#preloader.splash-preloader {
  background: rgba(238, 242, 246, 0.78) !important;
  backdrop-filter: saturate(1.15) blur(14px);
  -webkit-backdrop-filter: saturate(1.15) blur(14px);
}

.splash-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.splash-preloader-rings {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 0.5rem;
}

.splash-preloader-rings span {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: splash-preloader-ring 1.35s linear infinite;
}

.splash-preloader-rings span:nth-child(1) {
  inset: 0;
  border-top-color: #00cae3;
  border-right-color: rgba(0, 202, 227, 0.22);
}

.splash-preloader-rings span:nth-child(2) {
  inset: 14px;
  border-top-color: #0f79f3;
  border-left-color: rgba(15, 121, 243, 0.2);
  animation-duration: 1.95s;
  animation-direction: reverse;
}

.splash-preloader-rings span:nth-child(3) {
  inset: 28px;
  border-bottom-color: #0f79f3;
  border-right-color: rgba(15, 121, 243, 0.35);
  animation-duration: 2.55s;
}

@keyframes splash-preloader-ring {
  to {
    transform: rotate(360deg);
  }
}

#preloader.splash-preloader .splash-waviy {
  -webkit-box-reflect: below -40px linear-gradient(transparent, rgba(0, 0, 0, 0.12));
  font-size: clamp(2.25rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

#preloader.splash-preloader .splash-waviy span {
  color: transparent !important;
  background: linear-gradient(125deg, #00cae3 0%, #0f79f3 55%, #0a6ad8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: splash-preloader-letter 1.15s ease-in-out infinite !important;
  animation-delay: 0s !important;
  text-shadow: 0 8px 32px rgba(15, 121, 243, 0.15);
}

#preloader.splash-preloader .splash-waviy span:nth-child(1) {
  animation-delay: 0s !important;
}

#preloader.splash-preloader .splash-waviy span:nth-child(2) {
  animation-delay: 0.08s !important;
}

#preloader.splash-preloader .splash-waviy span:nth-child(3) {
  animation-delay: 0.16s !important;
}

#preloader.splash-preloader .splash-waviy span:nth-child(4) {
  animation-delay: 0.24s !important;
}

#preloader.splash-preloader .splash-waviy span:nth-child(5) {
  animation-delay: 0.32s !important;
}

#preloader.splash-preloader .splash-waviy span:nth-child(6) {
  animation-delay: 0.4s !important;
}

@keyframes splash-preloader-letter {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  25% {
    transform: translateY(-14px) scale(1.06);
    filter: brightness(1.08);
  }
  50% {
    transform: translateY(0) scale(0.98);
    filter: brightness(0.95);
  }
  75% {
    transform: translateY(-6px) scale(1.03);
    filter: brightness(1.05);
  }
}

@media (prefers-color-scheme: dark) {
  #preloader.splash-preloader {
    background: rgba(15, 23, 42, 0.82) !important;
  }
}

@media (max-width: 575.98px) {
  #preloader.splash-preloader .splash-waviy span {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
}
