html,
body {
  margin: 0;
  background: #fafaf9; /* ERP stone-50, same as the app's page background */
}

/* Splash shown until the app's first frame (see index.html). The app's
   start screen draws the same thing, so the hand-off is invisible. */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafaf9;
  transition: opacity 0.25s ease-out;
}

#loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.splash-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 43, 0.06);
}

.splash-name {
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.14em;
  color: #314158;
}

.splash-bar {
  position: relative;
  width: 120px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e2e8f0;
}

.splash-bar span {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 99px;
  background: #0d9488;
  animation: splash-slide 1.1s ease-in-out infinite;
}

@keyframes splash-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-bar span { animation: none; left: 30%; }
}

/* The app hides the reCAPTCHA badge (as before); the login page carries
   the "Protected by reCAPTCHA" notice instead. Done in CSS because the
   badge can appear after the app's hideBadge() call has run. */
.grecaptcha-badge {
  visibility: hidden !important;
}
