.app-loading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000;
  z-index: 9999;
}

/* Indeterminate progress: startup does not report a reliable percentage. */
.app-loading::before {
  content: '';
  width: 200px;
  height: 200px;
  background: url('/content/images/transparent-logo-nashium_compressed.avif') center / contain no-repeat;
  margin-bottom: 24px;
}

.app-loading::after {
  content: '';
  width: 160px;
  height: 3px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, #f9d67a, transparent) -160px 0 / 160px 100% no-repeat,
    rgba(249, 214, 122, 0.14);
  animation: loading-progress 1.4s ease-in-out infinite;
}

@keyframes loading-progress {
  to {
    background-position: 160px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading::after {
    animation: none;
    background-position: center;
  }
}

/* Error message styling */
.app-loading #jhipster-error {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}
