/* Splash shown while the Angular bundle loads (index.html). Brand colours from
   site/css/tokens.css; kept dependency-free because no stylesheet is loaded yet. */
.app-loading {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  color: #0f172a;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app-loading + .app-loading {
  min-height: 0;
  padding-top: 0;
}

.app-loading-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7fadc6, #156082 60%, #0f172a);
  box-shadow: 0 12px 34px rgba(21, 96, 130, 0.26);
  animation: app-loading-pulse 1.6s ease-in-out infinite;
}

.app-loading-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
}

.app-loading-by {
  display: block;
  margin-top: 6px;
  font-family: 'JetBrains Mono', ui-monospace, 'Menlo', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #687280;
  text-align: center;
}

.app-loading-bar {
  width: 120px;
  height: 3px;
  border-radius: 9999px;
  background: #e4e9f0;
  overflow: hidden;
}

.app-loading-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 9999px;
  background: #156082;
  animation: app-loading-slide 1.2s cubic-bezier(0.2, 0, 0, 1) infinite;
}

@keyframes app-loading-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.94);
  }
}

@keyframes app-loading-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-mark,
  .app-loading-bar::after {
    animation: none;
  }
}

#jhipster-error {
  max-width: 640px;
  margin: 40px auto;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #3a414c;
}

#jhipster-error h1 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: #0f172a;
}

#jhipster-error h2 {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #156082;
  margin: 20px 0 6px;
}

#jhipster-error code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  color: #12526e;
}

#jhipster-error a {
  color: #156082;
}
