/* ============================================================
   public.css  —  Public-facing pages (redirect loader, etc.)
   Uses CSS variables injected by layouts/public.php:
     --gold  --ink  --bg
   ============================================================ */

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

html { font-size: 16px; }

body {
  background: var(--bg, #04060A);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ---- Card ---- */
.card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.card a { text-decoration: none; }

/* ---- Brand ---- */
.logo {
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold, #C9A24B);
  letter-spacing: 0.04em;
}

/* ---- Loader body ---- */
.loader-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ---- Spinner ---- */
.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--gold, #C9A24B);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Text ---- */
.loader-msg {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.loader-sub {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.loader-sub strong { color: #94a3b8; }

/* ---- Skip link ---- */
.loader-skip {
  font-size: 0.82rem;
  color: var(--gold, #C9A24B);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.loader-skip:hover { opacity: 1; }

/* ---- Home link (fallback) ---- */
.loader-home {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.55rem 1.1rem;
  background: var(--gold, #C9A24B);
  color: var(--ink, #0A0F16);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.loader-home:hover { opacity: 0.88; }

/* ---- Footer ---- */
.foot {
  margin-top: 1.5rem;
  font-size: 0.73rem;
  color: #334155;
  text-align: center;
}

@media (max-width: 480px) {
  .card { padding: 2rem 1.25rem; border-radius: 10px; }
}
