/* Splash de carregamento — ConstruG alto padrão */
.construg-app-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 0%, #093DAB 0%, #011C48 45%, #010f28 100%);
  color: #fff;
  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s ease;
}
.construg-app-loader--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.construg-app-loader-inner {
  text-align: center;
  padding: 32px 24px;
  max-width: 360px;
  width: 100%;
}
.construg-app-loader-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  animation: construg-loader-logo-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes construg-loader-logo-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.construg-app-loader-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin: 0 auto 16px;
  max-width: 220px;
}
.construg-app-loader-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0773D0, #5eb3ff, #0773D0);
  background-size: 200% 100%;
  animation: construg-loader-shimmer 1.8s ease-in-out infinite;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes construg-loader-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.construg-app-loader-tagline {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 600;
}
.construg-app-loader-status {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.9;
  min-height: 1.4em;
}
.construg-app-loader-pct {
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

html.construg-loading,
html.construg-loading body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .construg-app-loader-logo { animation: none; opacity: 1; transform: none; }
  .construg-app-loader-bar > span { animation: none; }
  .construg-app-loader { transition-duration: 0.2s; }
}
