/* Bootstrap splash — self-contained styles for first paint before Angular loads. */

:root {
  --splash-bg: #07142b;
  --splash-text: #f5f9ff;
  --splash-text-muted: #a6c6ec;
  --splash-blue-100: #e6f0fb;
  --splash-blue-500: #2f6fb4;
  --splash-blue-700: #1c4a85;
  --splash-accent-tint: rgba(122, 162, 247, 0.08);
  --splash-font-body:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --splash-font-heading: 'Trebuchet MS', 'Lucida Sans', Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--splash-bg);
}

.app-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-height: 100dvh;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(19, 49, 92, 0.35) 0%, transparent 60%),
    linear-gradient(
      180deg,
      rgba(7, 20, 43, 0.5) 0%,
      rgba(7, 20, 43, 0.78) 55%,
      rgba(7, 20, 43, 0.94) 100%
    ),
    var(--splash-bg);
  color: var(--splash-text);
  font-family: var(--splash-font-body);
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-splash__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: app-splash-rise 600ms cubic-bezier(0.2, 0, 0, 1) both;
}

.app-splash__mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  color: var(--splash-blue-100);
  background: var(--splash-accent-tint);
  box-shadow: 0 8px 24px rgba(47, 111, 180, 0.35);
}

.app-splash__mark svg {
  display: block;
}

.app-splash__title {
  margin: 0;
  font-family: var(--splash-font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--splash-text);
  text-shadow:
    0 6px 24px rgba(7, 20, 43, 0.6),
    0 1px 2px rgba(7, 20, 43, 0.8);
}

.app-splash__spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--splash-blue-700);
  border-top-color: var(--splash-blue-500);
  border-radius: 50%;
  animation: app-splash-spin 0.7s linear infinite;
}

.app-splash__status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--splash-text-muted);
  letter-spacing: 0.02em;
}

@keyframes app-splash-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

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

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

  .app-splash__spinner {
    animation-duration: 1.4s;
  }
}
