/* The sign-in gate's screens (loading, signed out, no access, error). The app itself is app/fc/.
   Layout after the estate's sign-in and loading screens (upshift-pipeline: ag-auth.js,
   .agi-loading-screen); palette and fonts are theme C's (app/fc/theme.css). */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@700&family=Figtree:wght@400;600&display=optional');
:root {
  --deep: #1C0B24;        /* gradient start */
  --purple: #4A1F60;      /* theme C band */
  --plum: #6B3388;        /* gradient end */
  --cream: #F5EEE0;
  --cream-soft: rgba(245, 238, 224, 0.72);
  --cream-faint: rgba(245, 238, 224, 0.14);
  --gold: #FFBB33;        /* a fill, or text on purple only (AA on cream fails) */
  --warn: #FFD08A;
  --radius: 10px;
  --gutter: 16px;
  --mark: 88px;
  --bar-width: 220px;
  --sweep: 1.4s;
  --foot-h: 44px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font: 16px/1.5 'Figtree', system-ui, sans-serif;
  color: var(--cream);
  background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 55%, var(--plum) 100%) fixed;
}

.gate {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px var(--gutter) calc(var(--foot-h) + 32px);
  overflow: hidden;
}
/* a soft gold glow behind the mark */
.gate::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 187, 51, 0.10) 0%, transparent 45%);
  pointer-events: none;
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.gate-mark {
  width: var(--mark);
  height: var(--mark);
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 8px;
}

.gate-title {
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
}

.gate-store {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.gate-lede { margin: 0 0 20px; color: var(--cream-soft); max-width: 24rem; }
.gate-notice { margin: 0; font-weight: 600; color: var(--warn); }

.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.gate-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.gate-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gate-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.gate-btn-primary { background: #fff; color: var(--purple); border: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.gate-btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--cream-soft); margin-top: 8px; }

/* loading: a sweeping gold bar and an uppercase label */
.gate-bar {
  position: relative;
  width: var(--bar-width);
  max-width: 100%;
  height: 3px;
  margin-top: 16px;
  border-radius: 3px;
  background: var(--cream-faint);
  overflow: hidden;
}
.gate-bar-fill {
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: gate-sweep var(--sweep) ease-in-out infinite;
}
@keyframes gate-sweep { from { left: -60%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .gate-bar-fill { animation: none; left: 20%; }
}
.gate-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.gate-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--foot-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  background: rgba(10, 4, 14, 0.55);
  backdrop-filter: blur(10px);
}
.gate-foot img { height: 22px; width: auto; opacity: 0.85; }
.gate-version {
  position: absolute;
  right: var(--gutter);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--cream-soft);
}
