/* JCU Alumni — the gate (sign-in, password reset, set password).
 * A port of the client's designed gate (design/prototypes/index.html, template + component
 * script) to plain CSS classes: same values, same keyframes, no runtime. Fonts and the backdrop
 * video are same-origin under /assets/gate/ (CSP font-src/media default-src 'self').
 * Only the faces the gate actually draws are shipped: Saira Condensed 700, Source Sans 3
 * (variable — one file covers 400–700), Spline Sans Mono 400; latin + latin-ext each. */

@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/gate/saira-condensed-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/gate/saira-condensed-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/gate/source-sans-3-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/gate/source-sans-3-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/gate/spline-sans-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/gate/spline-sans-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── base (verbatim from the design's helmet) ──────────────────────────────── */
html, body { margin: 0; padding: 0; background: #0B0906; }
*, *::before, *::after { box-sizing: border-box; }
a { color: #E0A93E; text-decoration: none; }
a:hover { color: #F6CD6B; }
input::placeholder { color: rgba(246,241,231,.32); }
/* Browser autofill paints its own pale background under our light text. The dark inset shadow covers
   it, but `.gate-input:focus` (more specific) used to replace that shadow with the focus ring, so a
   FOCUSED autofilled field went white-on-pale-blue and typing could not be read. Every state carries
   the inset shadow; focus adds the ring on top. :autofill (Firefox, Safari) is its own rule: a
   selector list with a pseudo-class the browser does not know is dropped whole. */
.gate-input:-webkit-autofill, .gate-input:-webkit-autofill:hover, .gate-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F6F1E7; caret-color: #F6F1E7;
  -webkit-box-shadow: 0 0 0 1000px #17130D inset; box-shadow: 0 0 0 1000px #17130D inset;
  transition: border-color .15s, background-color 9999s 0s; }
.gate-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #17130D inset, 0 0 0 3px rgba(224,169,62,.18);
  box-shadow: 0 0 0 1000px #17130D inset, 0 0 0 3px rgba(224,169,62,.18); }
.gate-input:autofill { -webkit-text-fill-color: #F6F1E7; caret-color: #F6F1E7; box-shadow: 0 0 0 1000px #17130D inset; }
.gate-input:autofill:focus { box-shadow: 0 0 0 1000px #17130D inset, 0 0 0 3px rgba(224,169,62,.18); }
[hidden] { display: none !important; }   /* the classes below set display:flex — [hidden] must still win */

@keyframes jcuScan  { 0% { transform: translateY(-10vh) } 100% { transform: translateY(110vh) } }
@keyframes jcuSweep { to { transform: rotate(360deg) } }
@keyframes jcuRise  { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* ── stage: backdrop video, two vignettes, HUD fx ──────────────────────────── */
.gate { position: relative; min-height: 100vh; background: #0B0906; color: #F6F1E7;
  font-family: 'Source Sans 3', system-ui, sans-serif; overflow: hidden; display: flex; flex-direction: column; }
.gate-backdrop { position: absolute; inset: 0; overflow: hidden; }
.gate-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(11,9,6,.15) 0%, rgba(11,9,6,.55) 70%, rgba(11,9,6,.85) 100%); }
.gate-tint { position: absolute; inset: 0; background: rgba(11,9,6,.2); pointer-events: none; }
.gate-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.gate-fx__grid { position: absolute; inset: 0; background-size: 88px 88px;
  background-image: linear-gradient(rgba(246,241,231,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(246,241,231,.035) 1px, transparent 1px); }
.gate-fx__scan { position: absolute; left: 0; right: 0; top: 0; height: 18vh;
  background: linear-gradient(180deg, transparent, rgba(224,169,62,.06) 85%, rgba(224,169,62,.18));
  animation: jcuScan 7s linear infinite; }
.gate-fx__lines { position: absolute; inset: 0; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); }

.gate-main { position: relative; z-index: 3; flex: 1; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 48px; padding: clamp(32px,6vh,72px) clamp(20px,4vw,56px); }

/* ── the card ──────────────────────────────────────────────────────────────── */
.gate-card { flex: 0 1 440px; width: 100%; max-width: 440px; position: relative; background: rgba(14,11,8,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(246,241,231,.12);
  padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 22px;
  animation: jcuRise .8s cubic-bezier(.2,.7,.2,1) both; }
.gate-corner { position: absolute; width: 16px; height: 16px; }
.gate-corner--tl { top: -1px; left: -1px; border-top: 2px solid #E0A93E; border-left: 2px solid #E0A93E; }
.gate-corner--tr { top: -1px; right: -1px; border-top: 2px solid #E0A93E; border-right: 2px solid #E0A93E; }
.gate-corner--bl { bottom: -1px; left: -1px; border-bottom: 2px solid #E0A93E; border-left: 2px solid #E0A93E; }
.gate-corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid #E0A93E; border-right: 2px solid #E0A93E; }

.gate-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.gate-head { display: flex; flex-direction: column; gap: 6px; }
.gate-kicker { font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(246,241,231,.55); }
.gate-title { margin: 0; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 34px; line-height: 1;
  letter-spacing: .02em; text-transform: uppercase; }

.gate-field { display: flex; flex-direction: column; gap: 8px; }
.gate-label { font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(246,241,231,.72); }
.gate-label--split { display: flex; justify-content: space-between; align-items: baseline; }
.gate-input { width: 100%; height: 50px; padding: 0 14px; background: rgba(246,241,231,.04); border: 1px solid rgba(246,241,231,.18);
  border-radius: 0; color: #F6F1E7; font-family: 'Source Sans 3', sans-serif; font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.gate-input:focus { border-color: #E0A93E; box-shadow: 0 0 0 3px rgba(224,169,62,.18); }
.gate-pw { position: relative; display: flex; }
.gate-pw .gate-input { flex: 1; padding-right: 64px; }
.gate-toggle { position: absolute; right: 6px; top: 7px; height: 36px; padding: 0 10px; background: none; border: 0; cursor: pointer;
  font-family: 'Spline Sans Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,241,231,.6); }
.gate-toggle:hover { color: #F6F1E7; }

/* "Forgot?" — a text link inside the label row. Padding plus an equal negative margin grows the
   hit area to ~44px without moving anything on screen (the design's .tap fix). */
.gate-forgot { background: none; border: 0; padding: 16px 8px; margin: -16px -8px; cursor: pointer; font: inherit;
  letter-spacing: .12em; color: #E0A93E; text-transform: none; }
.gate-forgot:hover { color: #F6CD6B; }

.gate-alert { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid rgba(201,106,106,.5); background: rgba(158,43,43,.16);
  font-size: 14px; line-height: 1.4; color: #F2C9C9; }
.gate-alert__tag { font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: .14em; color: #C96A6A; padding-top: 2px; }

.gate-btn { height: 54px; width: 100%; background: #E0A93E; color: #14110C; border: 0; cursor: pointer; font-family: 'Saira Condensed', sans-serif;
  font-weight: 700; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center;
  justify-content: center; gap: 12px; transition: background .15s; }
.gate-btn:hover, a.gate-btn:hover { background: #F6CD6B; color: #14110C; }
.gate-btn[disabled] { cursor: progress; }
.gate-btn__arrow { font-family: 'Spline Sans Mono', monospace; font-size: 14px; }

/* the 4-step auth readout */
.gate-steps { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid rgba(224,169,62,.35); background: rgba(224,169,62,.05);
  font-family: 'Spline Sans Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.gate-step { display: flex; justify-content: space-between; gap: 12px; opacity: .45; }
.gate-step__tag { color: rgba(246,241,231,.4); }
.gate-step.is-cur, .gate-step.is-done { opacity: 1; }
.gate-step.is-cur .gate-step__tag { color: #F6F1E7; }
.gate-step.is-done .gate-step__tag { color: #E0A93E; }

/* Access granted */
.gate-granted { display: flex; flex-direction: column; gap: 20px; animation: jcuRise .5s ease both; }
.gate-granted__row { display: flex; align-items: center; gap: 14px; }
.gate-granted__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gate-granted__kicker { font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #E0A93E; }
.gate-granted__name { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 30px; line-height: 1;
  text-transform: uppercase; overflow-wrap: anywhere; margin: 0; }
.gate-ring { position: relative; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; border: 1px solid rgba(224,169,62,.5);
  overflow: hidden; display: block; }
.gate-ring__sweep { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(224,169,62,.55), transparent 28%);
  animation: jcuSweep 2.4s linear infinite; }
.gate-ring__dot { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #E0A93E; }

.gate-copy { margin: 0; font-size: 15.5px; line-height: 1.5; color: rgba(246,241,231,.75); }
.gate-note { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(246,241,231,.68); }
.gate-sent { margin: 0; padding: 14px; border: 1px solid rgba(224,169,62,.35); background: rgba(224,169,62,.06);
  font-size: 15px; line-height: 1.5; color: rgba(246,241,231,.85); }
.gate-sent b { color: #F6F1E7; overflow-wrap: anywhere; }

/* small mono text buttons: "← Back to log in", "Sign out" (with the design's .tap hit-area fix) */
.gate-textbtn { background: none; border: 0; padding: 16px 8px; margin: -16px -8px; cursor: pointer; font-family: 'Spline Sans Mono', monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246,241,231,.62); align-self: center; }
.gate-textbtn:hover { color: #F6F1E7; }
.gate-textbtn--dim { color: rgba(246,241,231,.55); padding: 0; margin: 0; min-height: 0; }

/* Register row 1.6: membership is through SOCA — this line replaces the design's Request-access tab. */
.gate-apply { margin: 0; padding-top: 18px; border-top: 1px solid rgba(246,241,231,.12); font-size: 14.5px; line-height: 1.55;
  color: rgba(246,241,231,.68); text-align: center; text-wrap: balance; }
.gate-apply a { white-space: nowrap; }

/* keyboard focus on buttons and links (the design styled input focus only) */
.gate-btn:focus-visible, .gate-toggle:focus-visible, .gate-forgot:focus-visible, .gate-textbtn:focus-visible, .gate-apply a:focus-visible {
  outline: 2px solid #E0A93E; outline-offset: 3px; }

/* ── reduced motion: still backdrop, no scan / rise / sweep ─────────────────
   The page script pauses the video on its first frame (a still, not a blank). */
@media (prefers-reduced-motion: reduce) {
  .gate-fx__scan { animation: none; display: none; }
  .gate-card, .gate-granted { animation: none; }
  .gate-ring__sweep { animation: none; }
  .gate-input, .gate-btn { transition: none; }
}
