/* App loader: Asset Rack logo, an indigo progress sweep and a caption */
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: splash-in 0.4s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.splash-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 70vw;
}

.splash-track {
  position: relative;
  width: 176px;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(79, 70, 229, 0.16);
}

.splash-track span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 55%, #22d3ee 100%);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.55);
  animation: splash-sweep 1.15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.splash-text {
  margin: -8px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

[data-bs-theme='dark'] .splash-track {
  background: rgba(255, 255, 255, 0.1);
}

/* black logo on light, white logo on dark */
.splash-logo.is-dark,
[data-bs-theme='dark'] .splash-logo.is-light {
  display: none;
}

[data-bs-theme='dark'] .splash-logo.is-dark {
  display: block;
}

@keyframes splash-sweep {
  from {
    left: -40%;
  }
  to {
    left: 100%;
  }
}

@keyframes splash-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-inner {
    animation: none;
  }

  .splash-track span {
    left: 0;
    width: 100%;
    animation: splash-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes splash-pulse {
  50% {
    opacity: 0.45;
  }
}
