.app-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.app-loader__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.app-loader__logo {
  width: 4rem;
  height: auto;
  display: block;
  animation: app-loader-logo-pulse 1.6s ease-in-out infinite;
}

.app-loader__bar {
  width: 5rem;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.app-loader__bar-fill {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #336aa6;
  animation: app-loader-bar 1.1s ease-in-out infinite;
}

.app-loader--exit {
  animation: app-loader-exit 0.22s ease-in forwards;
}

@keyframes app-loader-logo-pulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes app-loader-bar {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

@keyframes app-loader-exit {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader__logo,
  .app-loader__bar-fill,
  .app-loader--exit {
    animation: none;
  }
}
