/* Just Insurance branded loading spinner */

@keyframes ji-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes ji-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ji-fade-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-loading {
  font-family:
    'Inter',
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2b3c 0%, #0b4f6c 50%, #0a3d54 100%);
}

.ji-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: ji-fade-in 0.6s ease-out;
}

.ji-loader-logo {
  width: 72px;
  height: 72px;
  animation: ji-spin 2.5s linear infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.ji-loader.is-hidden {
  display: none;
}

.ji-loader-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0;
}

.app-error {
  max-width: 32rem;
  margin-top: 2rem;
  padding: 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.app-error h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.app-error ol {
  display: inline-block;
  text-align: left;
  margin: 0.5rem 0 0;
}
