/* The public holding page at the root of saff.strivesports.ai (Tom's ruling
   2026-08-13). This is a BRAND surface, not console furniture: the satin-flag
   photograph is the hero, everything else is Deep Green and the gold ramp from
   theme.css, kept low and discreet. No colour is defined here; theme.css is the
   one place colour lives. */

/* The UA hides [hidden] with display: none at zero specificity; the flex rules
   below would silently defeat it without this. The page's three states (login,
   loading, navigation) are driven entirely by the hidden attribute. */
[hidden] { display: none !important; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--deep-green) url('/assets/backgrounds/holding-flag.jpg') center / cover no-repeat;
}

#landing { position: relative; height: 100%; overflow: hidden; }

/* Contrast for the gate: a Deep Green ramp over the lower third only, so the
   photograph above it stays untouched. */
#scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, var(--deep-green), transparent);
  opacity: 0.92;
}

#gate {
  position: absolute;
  inset: auto 0 7vh 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.gate-status {
  font-size: 14px;
  color: var(--highlight-gold);
  min-height: 18px;
}
.gate-status.is-error { color: var(--mid-gold); font-weight: 700; }

/* ---- state 1: the login, low and discreet -------------------------------- */
#login { display: flex; align-items: center; gap: 10px; }
#login label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight-gold);
}
#login input {
  background: var(--deep-green);
  color: var(--white);
  border: 1px solid var(--mid-gold);
  border-radius: 2px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  width: 190px;
}
/* The input takes focus on load; the UA's blue ring is off-brand on this surface. */
#login input:focus {
  outline: 2px solid var(--highlight-gold);
  outline-offset: 1px;
}
#login button {
  background: var(--gold-gradient);
  color: var(--deep-green);
  border: 0;
  border-radius: 2px;
  padding: 9px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

/* ---- state 2: the loading readout ---------------------------------------- */
#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(420px, 80vw);
}
#load-bar {
  width: 100%;
  height: 3px;
  background: var(--mid-green);
  border-radius: 2px;
  overflow: hidden;
}
#load-fill {
  height: 100%;
  width: 0;
  background: var(--gold-gradient);
  transition: width 0.2s ease;
}
#load-skip {
  font-size: 12px;
  color: var(--highlight-gold);
  opacity: 0.85;
}

/* ---- state 3: the navigation --------------------------------------------- */
#nav { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.door {
  display: block;
  padding: 16px 28px;
  min-width: 190px;
  background: var(--deep-green);
  border: 1px solid var(--mid-gold);
  border-radius: 3px;
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.door:hover, .door:focus-visible {
  border-color: var(--highlight-gold);
  background: var(--mid-green);
}
