/* ═════════════════════════════════════════════════════════════════
   gate.css — the sign-in page at /banking/, on the SEJR identity
   (same tokens as site.css). Left: the story on an ink aurora. Right:
   a paper card with one crimson action. Every element id is the one
   account.js expects, so the logic is untouched.
   ═════════════════════════════════════════════════════════════════ */
#account-gate{
  --paper:#FAFAF7; --cream:#F2F1ED; --ink:#0F1419; --text:#0F1419; --text-2:#5A6470; --text-3:#8A929D;
  --line:rgba(15,20,25,.10); --line-2:rgba(15,20,25,.18);
  --crimson:#C1213F; --crimson-hover:#A0032C; --crimson-press:#7A001F;
  --on-ink-2:rgba(250,250,247,.72); --on-ink-3:rgba(250,250,247,.55); --on-ink-line:rgba(250,250,247,.14);
  --f-sans:'Söhne',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --f-display:'Söhne Breit','Söhne',system-ui,sans-serif; --f-mono:'Söhne Mono',ui-monospace,Consolas,monospace;
  position:fixed; inset:0; z-index:8000; overflow:auto; background:var(--paper); color:var(--text);
  font-family:var(--f-sans); font-size:15px; line-height:1.55; -webkit-font-smoothing:antialiased;
}
#account-gate *, #account-gate *::before, #account-gate *::after{ box-sizing:border-box; }
#account-gate input, #account-gate button{ font-family:inherit; user-select:text; }
.g-shell{ display:grid; grid-template-columns:minmax(0, 1.12fr) minmax(0, 1fr); min-height:100%; }

/* the story */
.g-brand{ position:relative; isolation:isolate; overflow:hidden; background:var(--ink); color:var(--paper);
  display:flex; flex-direction:column; padding:clamp(28px, 3.4vw, 48px) clamp(28px, 4.4vw, 72px) 28px; }
.g-brand::before{ content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(70% 60% at 0% 104%, rgba(193,33,63,.7) 0%, rgba(193,33,63,.2) 44%, transparent 74%),
             radial-gradient(64% 60% at 104% -6%, rgba(52,168,147,.55) 0%, rgba(52,168,147,.16) 44%, transparent 76%);
  animation:gAurora 7s ease-in-out infinite alternate; }
.g-brand::after{ content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.28; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size:150px; }
@keyframes gAurora{ from{ opacity:.78; } to{ opacity:1; } }
@media (prefers-reduced-motion:reduce){ .g-brand::before{ animation:none; } }
.g-wordmark{ font-family:var(--f-display); font-weight:800; font-size:22px; letter-spacing:.02em; color:var(--paper); text-decoration:none; align-self:flex-start; }
.g-wordmark span{ font-weight:500; opacity:.6; }
.g-copy{ margin-top:clamp(40px, 7vh, 96px); max-width:560px; }
.g-eyebrow{ display:block; font:500 12px var(--f-mono); letter-spacing:.16em; text-transform:uppercase; color:var(--on-ink-3); margin-bottom:18px; }
.g-copy h1{ margin:0; font-family:var(--f-display); font-weight:700; letter-spacing:-.025em; line-height:1.02; font-size:clamp(34px, 3.6vw, 56px); }
.g-lead{ margin:22px 0 0; font-size:17px; line-height:1.6; color:var(--on-ink-2); max-width:46ch; }
.g-facts{ list-style:none; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; margin:34px 0 0; padding:20px 0 0;
  background:linear-gradient(90deg, rgba(220,61,88,.9), rgba(52,168,147,.9)) left top / 100% 1px no-repeat; }
.g-facts span{ display:block; font:500 11px var(--f-mono); letter-spacing:.14em; text-transform:uppercase; color:var(--on-ink-3); }
.g-facts b{ display:block; margin-top:4px; font-weight:500; font-size:15px; }
.g-shot{ margin-top:auto; padding-top:40px; margin-right:calc(-1 * clamp(28px, 4.4vw, 72px)); }
.g-frame{ border-radius:14px 0 0 14px; overflow:hidden; border:1px solid rgba(250,250,247,.12); border-right:0; background:#1F262E;
  box-shadow:0 30px 70px -20px rgba(0,0,0,.6); transform:translateY(22px); }
.g-bar{ display:flex; align-items:center; gap:6px; height:28px; padding:0 12px; background:#1F262E; }
.g-bar i{ width:9px; height:9px; border-radius:50%; background:#39424C; }
.g-bar b{ margin-left:10px; height:16px; width:190px; border-radius:5px; background:#161C23; font:500 10px/16px var(--f-mono); color:rgba(250,250,247,.45); padding-left:9px; }
.g-frame img{ display:block; width:100%; height:auto; max-height:34vh; object-fit:cover; object-position:top left; }
.g-top{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.g-links{ display:flex; flex-wrap:wrap; gap:6px 20px; }
.g-links a{ font-size:13.5px; color:var(--on-ink-2); text-decoration:none; }
.g-links a:hover{ color:var(--paper); }

/* the card */
.g-panel{ display:flex; flex-direction:column; align-items:center; justify-content:center; padding:48px clamp(20px, 4vw, 64px) 28px; }
.g-card{ width:100%; max-width:430px; }
.g-tabs{ display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:10px; background:#ECECE9; margin-bottom:32px; }
.g-tabs button{ border:0; background:transparent; border-radius:7px; padding:10px 12px; font-size:14.5px; font-weight:500; color:var(--text-2); cursor:pointer; }
.g-tabs button:hover{ color:var(--ink); }
.g-tabs button.on{ background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(15,20,25,.08), 0 4px 12px -6px rgba(15,20,25,.15); }
.g-tabs button.hidden{ display:none; }
.g-title{ margin:0; font-family:var(--f-display); font-weight:700; font-size:30px; letter-spacing:-.02em; line-height:1.1; color:var(--ink); }
#account-gate .gate-note{ margin:10px 0 26px; font-size:15px; color:var(--text-2); }
#account-gate form label{ display:block; margin:0 0 16px; font-size:13.5px; font-weight:500; color:var(--ink); }
#account-gate form label small{ font-weight:400; color:var(--text-3); margin-left:6px; }
#account-gate form input{ display:block; width:100%; margin-top:7px; height:48px; padding:0 14px; border-radius:8px;
  border:1px solid var(--line-2); background:#fff; color:var(--ink); font-size:15.5px; transition:border-color .15s, box-shadow .15s; }
#account-gate form input::placeholder{ color:#A5ABB3; }
#account-gate form input:hover{ border-color:rgba(15,20,25,.3); }
#account-gate form input:focus{ outline:none; border-color:var(--ink); box-shadow:0 0 0 3px rgba(15,20,25,.08); }
.g-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.g-btn{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:50px; margin-top:6px; border:0; border-radius:8px;
  background:var(--crimson); color:#fff; font-size:15.5px; font-weight:500; cursor:pointer; transition:background-color .15s; }
.g-btn::after{ content:'→'; transition:transform .25s cubic-bezier(.22,1,.36,1); }
.g-btn:hover:not(:disabled){ background:var(--crimson-hover); }
.g-btn:hover:not(:disabled)::after{ transform:translateX(3px); }
.g-btn:active:not(:disabled){ background:var(--crimson-press); }
.g-btn:disabled{ background:#D9D9D6; color:#808284; cursor:default; }
.g-btn:disabled::after{ content:''; }
#account-gate .gate-err{ min-height:20px; margin:0 0 6px; font-size:14px; color:var(--crimson-press); }
#account-gate .gate-err:empty{ min-height:0; margin:0; }
.gate-switch{ margin-top:22px; padding-top:20px; border-top:1px solid var(--line); font-size:14.5px; text-align:center; }
.gate-switch a{ color:var(--ink); font-weight:500; text-decoration:none; border-bottom:1px solid var(--line-2); }
.gate-switch a:hover{ border-color:var(--ink); }
.g-legal{ max-width:430px; margin:36px 0 0; font-size:12.5px; line-height:1.5; color:var(--text-3); text-align:center; }
.g-legal a{ color:var(--text-2); }
#account-gate a:focus-visible, #account-gate button:focus-visible{ outline:2px solid #686B6D; outline-offset:2px; }

@media (max-width:980px){
  .g-shell{ grid-template-columns:1fr; }
  .g-brand{ padding-bottom:36px; }
  .g-copy{ margin-top:36px; }
  .g-shot{ display:none; }
  .g-links{ display:none; }
  .g-lead, .g-facts{ display:none; }
  .g-copy{ margin-top:28px; }
  .g-brand{ padding-bottom:28px; }
  .g-panel{ padding-top:40px; }
}
@media (max-width:560px){
  .g-copy h1{ font-size:28px; }
  .g-eyebrow{ margin-bottom:10px; }
  .g-panel{ padding-top:28px; }
  .g-tabs{ margin-bottom:22px; }
  .g-lead{ font-size:16px; }
  .g-facts{ grid-template-columns:1fr 1fr; }
  .g-facts li:last-child{ display:none; }
  .g-row{ grid-template-columns:1fr; gap:0; }
  #account-gate form input{ font-size:16px; }   /* no iOS zoom */
}

/* password show/hide + the forgotten-password hint */
#account-gate form label{ position:relative; }
#account-gate form input[type=password], #account-gate form input#acct-pass, #account-gate form input#reg-pass{ padding-right:70px; }
.g-eye{ position:absolute; right:7px; bottom:8px; height:32px; padding:0 11px; border:0; border-radius:6px; background:transparent;
  font-size:13px; font-weight:500; color:var(--text-2); cursor:pointer; }
.g-eye:hover{ background:#ECECE9; color:var(--ink); }
.g-forgot{ margin:14px 0 0; font-size:13px; line-height:1.5; color:var(--text-3); text-align:center; }
.g-forgot a{ color:var(--text-2); }

/* ══ the consent notice (shown over the gate or the game) ══ */
.consent{ position:fixed; left:16px; bottom:16px; z-index:9500; width:min(400px, calc(100vw - 32px)); padding:20px 20px 16px;
  background:#0F1419; color:#FAFAF7; border:1px solid rgba(250,250,247,.14); border-radius:16px;
  box-shadow:0 24px 60px -12px rgba(0,0,0,.55); font-family:'Söhne',system-ui,-apple-system,'Segoe UI',sans-serif; font-size:14px; line-height:1.55;
  -webkit-font-smoothing:antialiased; animation:consentIn .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes consentIn{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ .consent{ animation:none; } }
.consent-title{ font-weight:500; font-size:16px; }
.consent-text{ margin:6px 0 0; color:rgba(250,250,247,.72); }
.consent-acts{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px; }
.consent-btn{ min-height:44px; border-radius:8px; border:0; font:500 14px 'Söhne',system-ui,sans-serif; cursor:pointer; }
.consent-btn.yes{ background:#C1213F; color:#fff; }
.consent-btn.yes:hover{ background:#A0032C; }
.consent-btn.no{ background:transparent; color:#FAFAF7; box-shadow:inset 0 0 0 1px rgba(250,250,247,.34); }
.consent-btn.no:hover{ background:rgba(250,250,247,.08); }
.consent-btn:focus-visible, .consent-link:focus-visible{ outline:2px solid #3FE0CC; outline-offset:2px; }
.consent-link{ display:inline-block; margin-top:12px; font-size:13px; color:rgba(250,250,247,.7); }
.consent-link:hover{ color:#FAFAF7; }
html.mobile .consent{ left:8px; right:8px; bottom:calc(64px + env(safe-area-inset-bottom, 0)); width:auto; }

/* the forgot-password status line (neutral, not an error) */
#account-gate .gate-msg{ margin:0 0 10px; padding:12px 14px; border-radius:8px; background:#E8F2EF; color:#03493E; font-size:14px; line-height:1.5; }
#account-gate .gate-msg:empty{ display:none; }
#account-gate .gate-msg a{ color:#03493E; }
#account-gate .gate-err a{ color:var(--crimson-press); font-weight:500; }
.g-tabs.hidden, .gate-switch.hidden{ display:none !important; }

/* play first, sign up later: the guest door under the sign-in card */
.g-guest{ margin-top:22px; text-align:center; }
.g-or{ display:flex; align-items:center; gap:12px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); margin-bottom:14px; }
.g-or::before, .g-or::after{ content:''; flex:1; height:1px; background:var(--line); }
.g-guest-btn{ display:flex; align-items:center; justify-content:center; gap:10px; height:48px; border:1px solid var(--line-2); border-radius:8px;
  color:var(--ink); background:transparent; font-weight:500; font-size:15px; text-decoration:none; transition:border-color .2s, background .2s; }
.g-guest-btn::after{ content:'→'; transition:transform .25s cubic-bezier(.22,1,.36,1); }
.g-guest-btn:hover{ border-color:var(--ink); background:rgba(15,20,25,.03); }
.g-guest-btn:hover::after{ transform:translateX(3px); }
.g-guest-btn:focus-visible{ outline:2px solid var(--crimson); outline-offset:2px; }
.g-guest p{ margin:10px 0 0; font-size:12.5px; line-height:1.5; color:var(--text-3); }
