/* ─────────────────────────────────────────────────────────────────────────
   Minimalist Humanized System Loader
   Clean, quiet, respectful — pure logo + refined linear progress stripe
   ───────────────────────────────────────────────────────────────────────── */

@keyframes loadingSwipe {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(110%);
  }
  100% {
    transform: translateX(250%);
  }
}

/* ── Container ─────────────────────────────────────────────────────────── */

.loading-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F2537;
  z-index: 999999;
  user-select: none;
  transition: opacity 250ms ease-out;
}

/* Dismiss state */
.loading-container--hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Natural Transparent Logo ──────────────────────────────────────────── */

.loading-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  margin-bottom: 22px;
  opacity: 0.95;
}

/* ── Linear Progress Stripe ────────────────────────────────────────────── */

.loading-track {
  position: relative;
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border-radius: 1px;
}

.loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: #FDC800;
  border-radius: 1px;
  animation: loadingSwipe 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ── Optional Text ─────────────────────────────────────────────────────── */

.loading-text {
  margin: 14px 0 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ── Discreet Server Alert (Fallback Only) ─────────────────────────────── */

.temp-message {
  margin-top: 16px;
  padding: 6px 14px;
  max-width: 340px;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 2px;
  color: #FDA4AF;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

/* ── Reduced Motion ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .loading-bar {
    animation: none;
    width: 100%;
    opacity: 0.4;
  }
}
