/* Spread 'Em cinematic sign-in v3.
   Full-bleed real football action instead of line-art. ALL selectors are
   scoped to the signed-out auth screen; clubhouse routes are untouched. */
.auth-v2.auth-cinematic{
  position:relative;isolation:isolate;overflow:hidden;min-height:100svh;
  background:#030b0c;grid-template-columns:minmax(0,1fr) minmax(390px,.87fr);
}
.auth-cinematic .auth-broadcast{
  position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;
  background:
    radial-gradient(ellipse at 62% 8%,rgba(114,245,69,.25),transparent 42%),
    linear-gradient(135deg,#03100e,#091b14 45%,#02090b);
}
.auth-cinematic .auth-broadcast::before{
  content:"";position:absolute;inset:0;z-index:3;
  background:
    linear-gradient(90deg,rgba(2,10,10,.34),transparent 29%,rgba(1,9,8,.10) 56%,rgba(1,8,8,.40)),
    linear-gradient(180deg,rgba(1,9,10,.56),rgba(1,11,11,.05) 26%,rgba(1,11,9,.20) 56%,rgba(1,8,8,.87) 100%);
}
/* Real video footage is composited underneath the original emerald stadium wash. 
   Static field poster is shown until the first clip actually plays. */
.auth-cinematic .auth-broadcast-poster{
  position:absolute;inset:0;z-index:1;
  background:
    radial-gradient(ellipse 82% 50% at 55% 20%,rgba(45,114,76,.37),transparent 72%),
    repeating-linear-gradient(0deg,transparent 0 78px,rgba(207,255,208,.07) 78px 80px,transparent 80px 158px),
    linear-gradient(145deg,#123c35 0%,#051917 47%,#061a12 100%);
  opacity:.96;
}
.auth-cinematic .auth-broadcast-video{
  position:absolute;inset:0;width:100%;height:100%;
  z-index:2;object-fit:cover;object-position:50% 38%;
  opacity:0;pointer-events:none;transform:translateZ(0) scale(1.035);
  filter:contrast(1.24) saturate(.89) brightness(.94);
  transition:opacity .28s ease-in-out;
}
.auth-cinematic .auth-broadcast-video.is-live{opacity:.88}
.auth-cinematic .auth-broadcast-energy{
  position:absolute;inset:-24%;z-index:4;opacity:.85;pointer-events:none;
  background:
    radial-gradient(ellipse 23% 40% at 9% 30%,rgba(116,255,85,.24),transparent 83%),
    radial-gradient(ellipse 34% 28% at 90% 70%,rgba(77,255,114,.28),transparent 80%),
    linear-gradient(110deg,transparent 45%,rgba(188,255,132,.08) 48%,transparent 55%);
  animation:se-energy-sweep 9s ease-in-out infinite;
}
.auth-cinematic .auth-broadcast-energy::before,
.auth-cinematic .auth-broadcast-energy::after{
  content:"";position:absolute;width:70%;height:4px;transform:rotate(-18deg);
  background:linear-gradient(90deg,transparent,#93ff42,rgba(212,255,140,.65),transparent);
  box-shadow:0 0 12px #71ff26,0 0 38px rgba(87,255,68,.55);
  opacity:.5;top:24%;left:-10%;
}
.auth-cinematic .auth-broadcast-energy::after{top:77%;left:58%;transform:rotate(-28deg);opacity:.36}
.auth-cinematic .auth-broadcast-grain{
  position:absolute;inset:0;z-index:5;opacity:.16;pointer-events:none;
  background:repeating-linear-gradient(0deg,rgba(185,255,175,.10) 0 1px,transparent 1px 5px);
}
@keyframes se-energy-sweep{0%,100%{transform:translateX(-3%);opacity:.62}45%{transform:translateX(4%);opacity:1}}

.auth-cinematic .auth-art{
  position:relative;z-index:5;min-width:0;min-height:100svh;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:clamp(36px,5vw,78px);
  border:0;overflow:visible;background:transparent;
}
.auth-cinematic .auth-art::after,.auth-cinematic .auth-art::before{display:none}
.auth-cinematic .auth-art>.brand{
  position:absolute;top:clamp(28px,5.5vh,60px);left:clamp(36px,5vw,78px);
  z-index:7;filter:drop-shadow(0 9px 15px #000b);
}
.auth-cinematic .auth-art>.brand .brand-mark{
  box-shadow:0 0 0 1px rgba(214,255,89,.28),0 0 26px rgba(115,255,71,.18);
}
.auth-cinematic .auth-headline{
  position:relative;z-index:6;max-width:590px;padding:150px 0 25px;
}
.auth-cinematic .auth-art h1{
  font-size:clamp(4.2rem,7.6vw,8.8rem);line-height:.83;
  letter-spacing:-.025em;max-width:620px;
  text-shadow:0 10px 40px #000,0 3px 13px rgba(0,0,0,.95);
}
.auth-cinematic .auth-art h1 em{
  color:var(--lime);text-shadow:0 0 28px rgba(146,255,70,.38),0 5px 20px #000;
}
.auth-cinematic .auth-art p{color:#d6e9dc;text-shadow:0 2px 12px #000;font-size:.97rem}
.auth-cinematic .auth-action-kicker{color:#e4ffba;text-shadow:0 2px 10px #000}
.auth-cinematic .auth-action-ribbon span{
  border-color:rgba(214,255,89,.36);background:rgba(1,14,11,.7);
  box-shadow:inset 0 1px rgba(214,255,89,.1);
}
.auth-cinematic .auth-art>.small-print{
  position:relative;z-index:6;color:#d7e8d2;text-shadow:0 4px 14px #000;
}
.auth-cinematic .auth-main{
  position:relative;z-index:6;min-height:100svh;min-width:0;
  display:flex;align-items:center;justify-content:center;
  background:transparent;padding:105px clamp(20px,4.5vw,66px) 38px;
}
.auth-cinematic .auth-box{
  width:100%;max-width:440px;position:relative;z-index:7;min-width:0;
  padding:clamp(24px,3vw,38px);border:1px solid rgba(156,255,117,.42);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(5,22,18,.90),rgba(3,14,16,.87) 65%,rgba(4,18,14,.92));
  box-shadow:inset 0 1px 0 rgba(216,255,181,.18),0 0 0 1px rgba(83,205,78,.09),
             0 22px 80px rgba(0,0,0,.6),0 0 45px rgba(111,255,65,.14);
  -webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);
}
.auth-cinematic .auth-box::before{
  content:"";position:absolute;inset:-1px;z-index:-1;pointer-events:none;
  border-radius:inherit;box-shadow:0 0 33px rgba(139,255,67,.08);
}
.auth-cinematic .auth-box .eyebrow{
  font-size:.68rem;color:#c6ff70;letter-spacing:.18em
}
.auth-cinematic .auth-box h2{
  font-size:clamp(2.2rem,4.1vw,3.35rem);line-height:.96;
  max-width:none;color:#f5fff0;margin:8px 0 10px;text-shadow:0 5px 15px #0009;
}
.auth-cinematic .auth-description{font-size:.85rem;line-height:1.5;margin:0 0 18px;color:#c7d7cc}
.auth-cinematic .auth-box .field{
  border:1px solid rgba(125,188,140,.40);border-radius:11px;
  background:rgba(4,22,20,.82);color:#f4fff0;
}
.auth-cinematic .auth-box .field:focus{
  border-color:var(--lime);box-shadow:0 0 0 3px rgba(214,255,89,.16);
}
.auth-cinematic .auth-box .btn-primary{
  border-radius:12px;background:linear-gradient(92deg,#c6ff5d,#a6fc40);color:#081008;
  box-shadow:0 0 16px rgba(180,255,60,.25);font-weight:900;
}
.auth-cinematic .auth-box .auth-provider-passkey{
  background:rgba(18,42,38,.94);border:1px solid rgba(134,191,148,.42)
}
.auth-cinematic .auth-box .auth-provider-google{border:1px solid #c5d3ce}
.auth-cinematic .auth-logo{display:none}
.auth-cinematic .auth-short{display:none}
.auth-cinematic .auth-mobile-tagline{display:none}
.auth-cinematic .auth-mobile-cinema{display:none!important}
.auth-cinematic .auth-info-links a,.auth-cinematic .auth-hint a{color:#b6cebd}
.auth-cinematic .auth-info-links a:hover,.auth-cinematic .auth-hint a:hover{color:var(--lime)}
.auth-cinematic .auth-box button:focus-visible,.auth-cinematic .auth-box a:focus-visible{
  outline:2px solid var(--lime);outline-offset:3px;
}
@media(min-width:901px) and (max-height:720px){
  .auth-cinematic .auth-art{padding-bottom:25px}
  .auth-cinematic .auth-art h1{font-size:clamp(3.7rem,6vw,6.5rem)}
  .auth-cinematic .auth-main{padding-top:45px;padding-bottom:25px}
  .auth-cinematic .auth-box{padding:22px 28px}
}
@media(min-width:901px) and (max-width:1120px){
  .auth-v2.auth-cinematic{grid-template-columns:minmax(0,1fr) minmax(385px,.92fr)}
  .auth-cinematic .auth-art{padding:35px}
  .auth-cinematic .auth-art>.brand{left:35px}
  .auth-cinematic .auth-art h1{font-size:clamp(3.5rem,6vw,6rem)}
  .auth-cinematic .auth-main{padding-left:20px;padding-right:25px}
}

/* iPhone and Android: FULL-BLEED real action behind a luminous, compact
   sign-in card. Not a tiny video banner above a black page. */
@media(max-width:900px){
  .auth-v2.auth-cinematic{grid-template-columns:minmax(0,1fr);min-height:100svh}
  .auth-cinematic .auth-art{display:none}
  .auth-cinematic .auth-broadcast-video{
    object-position:50% 23%;transform:translateZ(0) scale(1.11);
  }
  .auth-cinematic .auth-broadcast-video.is-live{opacity:.92}
  .auth-cinematic .auth-broadcast::before{
    background:
      linear-gradient(180deg,rgba(1,8,8,.22) 0%,rgba(0,9,8,.05) 24%,rgba(1,11,10,.60) 70%,#020908 100%),
      linear-gradient(90deg,rgba(2,12,8,.35),transparent 38%,rgba(2,12,8,.33));
  }
  .auth-cinematic .auth-broadcast-energy{opacity:1}
  .auth-cinematic .auth-main{
    min-height:100svh;padding:max(20px,env(safe-area-inset-top)) 15px max(24px,env(safe-area-inset-bottom));
    display:flex;align-items:center;justify-content:center;
  }
  .auth-cinematic .auth-box{
    margin:0 auto;max-width:430px;
    border-radius:20px;padding:clamp(16px,3.9vw,23px);
    background:linear-gradient(148deg,rgba(2,18,15,.79),rgba(2,11,13,.86) 65%,rgba(3,18,13,.88));
    border-color:rgba(176,255,108,.54);
    box-shadow:inset 0 1px 0 rgba(223,255,189,.16),0 24px 70px rgba(0,0,0,.43),0 0 39px rgba(114,245,45,.16);
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  }
  .auth-cinematic .auth-logo{
    display:flex;align-items:center;justify-content:center;
    margin:0 0 8px;gap:10px;
  }
  .auth-cinematic .auth-logo .brand-mark{width:41px;height:41px;border-radius:11px}
  .auth-cinematic .auth-logo .wordmark{font-size:clamp(1.6rem,6.9vw,2rem)}
  .auth-cinematic .auth-mobile-tagline{
    display:flex;align-items:center;justify-content:center;gap:10px;
    color:#e1f8cb;font-family:'Barlow Condensed',sans-serif;font-weight:900;
    font-style:italic;text-transform:uppercase;letter-spacing:.18em;
    font-size:.72rem;margin:4px 0 18px;
  }
  .auth-cinematic .auth-mobile-tagline::before,
  .auth-cinematic .auth-mobile-tagline::after{
    content:"";width:20px;height:2px;background:var(--lime);
    box-shadow:0 0 12px var(--lime);flex:none;
  }
  .auth-cinematic .auth-box h2{
    font-size:clamp(2.16rem,8vw,2.8rem);
    margin:7px 0 9px;
  }
  .auth-cinematic .auth-description{
    font-size:.81rem;line-height:1.5;margin-bottom:15px
  }
  .auth-cinematic .auth-provider-note{display:none}
  .auth-cinematic .auth-socials{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  }
  .auth-cinematic .auth-provider{
    padding:9px 9px;min-height:46px;gap:8px;font-size:.82rem;border-radius:11px;
  }
  .auth-cinematic .auth-provider svg{height:19px;width:19px;flex-basis:19px}
  .auth-cinematic .auth-long{display:none}
  .auth-cinematic .auth-short{display:inline}
  .auth-cinematic .auth-passkey-first-use{
    margin:2px 0 0;gap:4px 8px;font-size:.74rem;justify-content:center;
  }
  .auth-cinematic .auth-passkey-first-use .auth-text-link{font-size:.74rem;min-height:26px}
  .auth-cinematic .auth-divider{margin:12px 0 11px}
  .auth-cinematic .auth-form{gap:10px}
  .auth-cinematic .auth-form .field-label{font-size:.75rem;margin-bottom:5px}
  .auth-cinematic .auth-box .field{min-height:46px;padding:11px 12px;font-size:16px}
  .auth-cinematic .auth-box .btn-primary{min-height:48px;margin-top:1px}
  .auth-cinematic .auth-password-field .field{padding-right:70px}
  .auth-cinematic .auth-reveal{min-height:38px}
  .auth-cinematic .auth-form-links{margin:-4px 0 -2px}
  .auth-cinematic .auth-first-time{margin-top:13px;padding-top:12px;font-size:.75rem}
  .auth-cinematic .auth-hint{font-size:.69rem;line-height:1.45;margin:12px 0 0}
  .auth-cinematic .auth-info-links{margin-top:8px;font-size:.68rem;gap:6px 14px}
  .auth-cinematic .auth-info-links a{min-height:24px}
}
@media(max-width:390px){
  .auth-cinematic .auth-main{padding-left:10px;padding-right:10px}
  .auth-cinematic .auth-box{padding:15px 14px}
  .auth-cinematic .auth-mobile-tagline{margin-bottom:13px}
  .auth-cinematic .auth-logo .wordmark{font-size:1.6rem}
}
@media(max-height:720px) and (max-width:900px){
  .auth-cinematic .auth-main{align-items:flex-start}
  .auth-cinematic .auth-mobile-tagline{margin-bottom:10px}
  .auth-cinematic .auth-box{margin:0 auto}
}
@media(max-height:600px) and (max-width:900px){
  .auth-cinematic .auth-logo{margin-bottom:5px}
  .auth-cinematic .auth-box{padding:14px}
  .auth-cinematic .auth-provider{min-height:43px}
}
@media(prefers-reduced-motion:reduce){
  .auth-cinematic .auth-broadcast-video{display:none}
  .auth-cinematic .auth-broadcast-energy{animation:none}
}
@media print{
  .auth-cinematic .auth-broadcast{display:none}
  .auth-cinematic .auth-box{border:1px solid #999;box-shadow:none;background:white}
}

/* Mobile hero is part of the full screen rather than a 100px cartoon banner.
   The real logo floats above the actual form: no baked-in screenshot inputs. */
@media(max-width:900px){
  .auth-cinematic .auth-main{
    display:block;min-height:100svh;padding:
      clamp(230px,31svh,315px) clamp(12px,4vw,22px)
      max(24px,env(safe-area-inset-bottom));
  }
  .auth-cinematic .auth-box{
    position:relative;margin-inline:auto;padding:20px clamp(17px,4vw,24px) 23px;
    max-width:430px;background:linear-gradient(165deg,rgba(2,14,12,.77),rgba(2,11,12,.93) 74%);
  }
  .auth-cinematic .auth-logo{
    position:absolute;top:-196px;left:0;right:0;
    margin:0;justify-content:center;filter:drop-shadow(0 5px 16px #000);
  }
  .auth-cinematic .auth-logo .brand-mark{width:54px;height:54px}
  .auth-cinematic .auth-logo .wordmark{font-size:clamp(2.15rem,8vw,2.8rem)}
  .auth-cinematic .auth-mobile-tagline{
    position:absolute;top:-125px;left:0;right:0;margin:0;
    font-size:.83rem;text-shadow:0 3px 12px #000;
  }
  .auth-cinematic .auth-box h2{font-size:clamp(2.25rem,9vw,3rem)}
  .auth-cinematic .auth-broadcast-energy{z-index:4}
}
@media(max-width:400px){
  .auth-cinematic .auth-main{padding-top:clamp(210px,29svh,275px)}
  .auth-cinematic .auth-logo{top:-180px}
  .auth-cinematic .auth-mobile-tagline{top:-113px}
  .auth-cinematic .auth-box{padding:17px 15px}
}
@media(max-height:700px) and (max-width:900px){
  .auth-cinematic .auth-main{padding-top:205px}
  .auth-cinematic .auth-logo{top:-175px}
  .auth-cinematic .auth-mobile-tagline{top:-109px}
}

/* Align the complete Spread 'Em lockup to the viewport center on phones.
   The emblem and wordmark must be treated as a single unit, not as
   independently centered pieces. The login card stays in its current place. */
@media (max-width:900px) {
  .auth-cinematic .auth-logo,
  .auth-cinematic .auth-mobile-tagline {
    left:50%;
    right:auto;
    width:max-content;
    max-width:calc(100vw - 24px);
    margin-inline:0;
    transform:translateX(-50%);
  }
  .auth-cinematic .auth-logo {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    white-space:nowrap;
    gap:12px;
  }
  .auth-cinematic .auth-logo .brand-mark { flex:0 0 auto; }
  .auth-cinematic .auth-logo .wordmark { flex:0 1 auto; min-width:0; white-space:nowrap; }
  .auth-cinematic .auth-mobile-tagline {
    text-align:center;
    justify-content:center;
    white-space:nowrap;
  }
}
@media (max-width:360px) {
  .auth-cinematic .auth-logo { gap:8px; }
  .auth-cinematic .auth-logo .brand-mark { width:46px; height:46px; }
  .auth-cinematic .auth-logo .wordmark { font-size:clamp(1.55rem,7.6vw,1.85rem); }
  .auth-cinematic .auth-mobile-tagline { font-size:.7rem; letter-spacing:.1em; gap:7px; }
  .auth-cinematic .auth-mobile-tagline::before,
  .auth-cinematic .auth-mobile-tagline::after { width:15px; }
}

/* Center the whole logo + tagline vertically within the open mobile hero:
   between the visible top of the page (below browser chrome) and login card.
   Keep positioning relative to the card to avoid changing auth/tab order. */
@media (max-width:900px) {
  .auth-cinematic .auth-main {
    --se-login-hero-space:clamp(190px,25svh,270px);
    --se-login-hero-half:clamp(95px,12.5svh,135px);
    padding-top:var(--se-login-hero-space);
  }
  .auth-cinematic .auth-logo {
    top:calc(0px - var(--se-login-hero-half) - 43px);
  }
  .auth-cinematic .auth-mobile-tagline {
    top:calc(0px - var(--se-login-hero-half) + 24px);
  }
}
@media (max-width:400px) {
  .auth-cinematic .auth-main {
    --se-login-hero-space:clamp(178px,24svh,236px);
    --se-login-hero-half:clamp(89px,12svh,118px);
  }
}
@media (max-width:900px) and (max-height:700px) {
  .auth-cinematic .auth-main {
    --se-login-hero-space:176px;
    --se-login-hero-half:88px;
  }
}

/* ── Fit-to-screen login (every phone, tablet and desktop) ─────────────────
   The sign-in card always fits the visible screen. The logo sits in its own
   hero area that takes whatever height the card leaves, so it stays centered
   on any device; spacing inside the card tightens on shorter screens. The
   small print (invite note, rules, legal links) sits just below the card.
   Background video and motion are untouched. */
.auth-cinematic .auth-main{flex-direction:column}
.auth-cinematic .auth-hero{display:none}
.auth-cinematic .auth-legal{width:100%;max-width:440px;margin:14px auto 0;padding:0 6px;position:relative;z-index:7;
  text-shadow:0 2px 10px #000}
.auth-cinematic .auth-legal .auth-hint{margin:0;color:#c9dbd2}
.auth-cinematic .auth-legal .auth-info-links{margin-top:6px}
@media (max-width:900px){
  .auth-cinematic .auth-main{
    display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
    min-height:100vh;min-height:100svh;
    padding:max(8px,env(safe-area-inset-top)) clamp(12px,4vw,22px) max(14px,env(safe-area-inset-bottom));
  }
  .auth-cinematic .auth-hero{
    flex:1 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:clamp(10px,2svh,18px);min-height:112px;padding:6px 0 clamp(12px,2.6svh,26px);
  }
  .auth-cinematic .auth-hero .auth-logo,
  .auth-cinematic .auth-hero .auth-mobile-tagline{
    position:static;top:auto;left:auto;right:auto;transform:none;margin:0;max-width:100%;
  }
  .auth-cinematic .auth-box{flex:0 0 auto;width:100%;max-width:440px;margin:0 auto}
  .auth-cinematic .auth-legal{max-width:440px;padding:0 4px}
  .auth-cinematic .auth-legal .auth-hint{font-size:.7rem;line-height:1.45}
}
/* Shorter phones (most iPhones with Safari bars): trim card spacing. */
@media (max-width:900px) and (max-height:760px){
  .auth-cinematic .auth-box{padding:16px clamp(15px,4vw,22px) 16px}
  .auth-cinematic .auth-box h2{font-size:clamp(2rem,8.4vw,2.6rem);margin:5px 0 6px}
  .auth-cinematic .auth-description{margin-bottom:12px}
  .auth-cinematic .auth-passkey-first-use{margin-top:0}
  .auth-cinematic .auth-divider{margin:8px 0}
  .auth-cinematic .auth-form{gap:8px}
  .auth-cinematic .auth-form .field-label{margin-bottom:4px}
  .auth-cinematic .auth-box .field{min-height:44px;padding-top:9px;padding-bottom:9px}
  .auth-cinematic .auth-box .btn-primary{min-height:46px}
  .auth-cinematic .auth-first-time{margin-top:10px;padding-top:9px}
  .auth-cinematic .auth-hero .auth-logo .brand-mark{width:46px;height:46px}
  .auth-cinematic .auth-hero .auth-logo .wordmark{font-size:clamp(1.9rem,7.4vw,2.4rem)}
}
/* Compact phones (iPhone SE / mini, small Android): tighter still. */
@media (max-width:900px) and (max-height:640px){
  .auth-cinematic .auth-box{padding:13px 14px 13px;border-radius:18px}
  .auth-cinematic .auth-box .eyebrow{font-size:.62rem}
  .auth-cinematic .auth-box h2{font-size:clamp(1.75rem,7.4vw,2.1rem);margin:3px 0 4px}
  .auth-cinematic .auth-description{font-size:.76rem;margin-bottom:9px}
  .auth-cinematic .auth-provider{min-height:42px}
  .auth-cinematic .auth-passkey-first-use .auth-text-link{min-height:24px}
  .auth-cinematic .auth-divider{margin:5px 0 6px}
  .auth-cinematic .auth-form{gap:6px}
  .auth-cinematic .auth-form .field-label{font-size:.7rem;margin-bottom:3px}
  .auth-cinematic .auth-box .field{min-height:42px;padding-top:8px;padding-bottom:8px}
  .auth-cinematic .auth-box .btn-primary{min-height:44px}
  .auth-cinematic .auth-first-time{margin-top:7px;padding-top:7px}
  .auth-cinematic .auth-hero{min-height:88px;gap:8px}
  .auth-cinematic .auth-hero .auth-logo .brand-mark{width:40px;height:40px;border-radius:11px}
  .auth-cinematic .auth-hero .auth-logo .wordmark{font-size:clamp(1.6rem,6.6vw,2rem)}
  .auth-cinematic .auth-hero .auth-mobile-tagline{font-size:.66rem}
}
/* Phones in landscape: logo beside nothing — keep it small and let the card scroll. */
@media (max-width:900px) and (max-height:480px){
  .auth-cinematic .auth-hero{min-height:0;flex:0 0 auto;padding:4px 0 10px;flex-direction:row;gap:14px}
  .auth-cinematic .auth-hero .auth-mobile-tagline{display:none}
}
/* Laptops and shorter desktop windows: keep the whole card on screen. */
@media (min-width:901px) and (max-height:960px){
  .auth-cinematic .auth-main{padding-top:24px;padding-bottom:20px}
  .auth-cinematic .auth-box{padding:24px 30px}
  .auth-cinematic .auth-box h2{margin:8px 0 8px}
  .auth-cinematic .auth-socials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .auth-cinematic .auth-long{display:none}
  .auth-cinematic .auth-short{display:inline}
  .auth-cinematic .auth-provider-note{display:none}
  .auth-cinematic .auth-divider{margin:12px 0}
  .auth-cinematic .auth-form{gap:10px}
}


/* Viewport-aware cinematic sign-in, November 2026.
   Size BOTH columns to the available width and height without compromising the
   original football footage, lockup or stacked desktop sign-in actions.
   A multi-field password setup, browser zoom or a very short window may need
   vertical scrolling: never crop a control or shrink text to force a fit. */
.auth-v2.auth-cinematic{
  min-height:100vh;min-height:100svh;min-height:100dvh;
  grid-template-columns:minmax(0,1.05fr) minmax(385px,.95fr);
}
/* Keep the action footage full-bleed even when a short viewport must scroll. */
.auth-cinematic .auth-broadcast{position:fixed;inset:0}
.auth-cinematic .auth-art{
  --se-auth-edge:clamp(24px,3.5vw,60px);
  min-height:100vh;min-height:100svh;min-height:100dvh;
  padding:var(--se-auth-edge);justify-content:flex-end;
}
.auth-cinematic .auth-art>.brand{
  top:clamp(24px,3.3svh,45px);left:var(--se-auth-edge);
}
.auth-cinematic .auth-headline{
  max-width:min(100%,610px);padding:0 0 clamp(12px,2.2svh,24px);
}
.auth-cinematic .auth-art h1{
  font-size:clamp(3.15rem,min(6.5vw,11svh),7rem);
  line-height:.85;max-width:100%;
}
.auth-cinematic .auth-art p{
  margin-top:clamp(12px,1.8svh,22px);
  font-size:clamp(.82rem,1vw,.96rem);line-height:1.5;
}
.auth-cinematic .auth-art>.small-print{line-height:1.4}
.auth-cinematic .auth-main{
  min-height:100vh;min-height:100svh;min-height:100dvh;
  padding:clamp(14px,2.2svh,28px) clamp(18px,3vw,50px);
  flex-direction:column;align-items:center;justify-content:center;
}
.auth-cinematic .auth-box{
  width:100%;max-width:440px;flex:0 0 auto;
  padding:clamp(20px,2.7svh,34px) clamp(20px,2.7vw,34px);
}
.auth-cinematic .auth-box h2{
  font-size:clamp(2.1rem,min(3.5vw,5.8svh),3.2rem);
  margin:7px 0 9px;
}
.auth-cinematic .auth-description{margin-bottom:clamp(10px,1.8svh,16px)}
.auth-cinematic .auth-socials{grid-template-columns:minmax(0,1fr)}
.auth-cinematic .auth-main .auth-legal{
  width:100%;max-width:440px;margin:clamp(8px,1.3svh,14px) auto 0;
}

/* Regular laptop heights: reduce dead space, not important sign-in options. */
@media (min-width:901px) and (max-height:900px){
  .auth-cinematic .auth-main{padding-block:clamp(10px,1.8svh,18px)}
  .auth-cinematic .auth-box{
    padding:clamp(15px,2.4svh,22px) clamp(20px,2.4vw,29px);
  }
  .auth-cinematic .auth-provider{min-height:45px;padding:9px 13px}
  .auth-cinematic .auth-provider-note{margin-top:7px;line-height:1.4}
  .auth-cinematic .auth-passkey-first-use{margin-top:4px}
  .auth-cinematic .auth-divider{margin:10px 0}
  .auth-cinematic .auth-form{gap:9px}
  .auth-cinematic .auth-form .field-label{margin-bottom:5px}
  .auth-cinematic .auth-box .field{min-height:47px;padding:10px 12px;font-size:16px}
  .auth-cinematic .auth-box .btn-primary{min-height:48px;padding:11px}
  .auth-cinematic .auth-first-time{margin-top:15px;padding-top:12px}
  .auth-cinematic .auth-main .auth-legal{margin-top:8px}
  .auth-cinematic .auth-info-links{margin-top:4px}
}
/* Very short desktop/landscape laptop: compact buttons before allowing scroll. */
@media (min-width:901px) and (max-height:720px){
  .auth-cinematic .auth-socials{grid-template-columns:repeat(2,minmax(0,1fr))}
  .auth-cinematic .auth-provider-note{display:none}
  .auth-cinematic .auth-art h1{
    font-size:clamp(2.9rem,min(6.1vw,10svh),6rem);
  }
  .auth-cinematic .auth-main{padding-block:9px}
  .auth-cinematic .auth-box{padding-block:14px}
  .auth-cinematic .auth-box h2{
    font-size:clamp(1.9rem,min(3.3vw,5.6svh),2.7rem);
  }
  .auth-cinematic .auth-legal .auth-hint{font-size:.68rem;line-height:1.35}
}

/* Phone and tablet: the logo uses remaining hero space, the card stays
   readable, and safe-area/legal links remain accessible on short screens. */
@media (max-width:900px){
  .auth-v2.auth-cinematic{grid-template-columns:minmax(0,1fr)}
  .auth-cinematic .auth-art{display:none}
  .auth-cinematic .auth-main{
    min-height:100svh;min-height:100dvh;
    padding:max(8px,env(safe-area-inset-top)) clamp(10px,3.6vw,20px)
      max(12px,env(safe-area-inset-bottom));
    align-items:stretch;justify-content:flex-start;
  }
  .auth-cinematic .auth-hero{
    display:flex;flex:1 1 auto;min-height:clamp(70px,11svh,150px);
    gap:clamp(7px,1.3svh,14px);
    padding:6px 0 clamp(10px,1.6svh,18px);
  }
  .auth-cinematic .auth-hero .auth-logo,
  .auth-cinematic .auth-hero .auth-mobile-tagline{
    position:static;top:auto;left:auto;right:auto;
    max-width:100%;margin:0;transform:none;
  }
  .auth-cinematic .auth-socials{grid-template-columns:repeat(2,minmax(0,1fr))}
  .auth-cinematic .auth-box{
    width:100%;max-width:440px;margin:0 auto;
    padding:clamp(14px,2.3svh,22px) clamp(14px,4vw,24px);
  }
  .auth-cinematic .auth-box h2{
    font-size:clamp(2rem,8.4vw,2.7rem);
  }
  .auth-cinematic .auth-main .auth-legal{
    max-width:440px;margin-top:clamp(7px,1.4svh,12px);
  }
}
@media (max-width:900px) and (max-height:760px){
  .auth-cinematic .auth-hero{min-height:65px}
  .auth-cinematic .auth-box{padding:15px clamp(14px,4vw,20px)}
  .auth-cinematic .auth-box h2{font-size:clamp(1.95rem,8.2vw,2.55rem)}
}
@media (max-width:900px) and (max-height:640px){
  .auth-cinematic .auth-hero{min-height:48px;gap:7px}
  .auth-cinematic .auth-box{padding:12px 14px}
  .auth-cinematic .auth-box h2{font-size:clamp(1.75rem,7.4vw,2.1rem)}
}
@media (max-width:900px) and (max-height:480px){
  .auth-cinematic .auth-hero{
    flex:0 0 auto;min-height:0;flex-direction:row;
    padding:4px 0 10px;
  }
  .auth-cinematic .auth-hero .auth-mobile-tagline{display:none}
}

/* Original football-stock login on desktop AND mobile.
   The two existing native HTML5 videos crossfade through the same six Mixkit
   football clips. No remote embeds, player controls, YouTube badges, score
   overlays, or slideshow. The brand and sign-in form remain unchanged. */
.auth-cinematic .auth-broadcast-video{
  z-index:2;
  object-fit:cover;
  transition:opacity .55s ease-in-out;
}
.auth-cinematic .auth-broadcast-video.is-live{
  opacity:.96;
}
.auth-cinematic .auth-broadcast.has-live-footage .auth-broadcast-poster{
  opacity:0;
}
.auth-cinematic .auth-broadcast.has-live-footage .auth-broadcast-energy{
  opacity:.32;
}
.auth-cinematic .auth-broadcast.has-live-footage .auth-broadcast-grain{
  opacity:.18;
}
@media (min-width:901px){
  .auth-cinematic .auth-broadcast-video{
    object-position:center 40%;
    transform:translateZ(0) scale(1.035);
  }
}
@media (max-width:900px) and (prefers-reduced-motion:no-preference){
  /* Real moving footage on iPhone/Android too, not the former poster only.
     Cover the screen without stretching or displacing the login form. */
  .auth-cinematic .auth-broadcast-video{
    display:block;
    object-fit:cover;
    object-position:center 32%;
    transform:translateZ(0) scale(1.05);
  }
  .auth-cinematic .auth-broadcast-video.is-live{opacity:.94}
  .auth-cinematic .auth-broadcast.has-live-footage .auth-broadcast-energy{
    opacity:.20;
  }
}
@media (prefers-reduced-motion:reduce){
  .auth-cinematic .auth-broadcast-video{display:none!important}
  .auth-cinematic .auth-broadcast-energy{animation:none}
}


/* Mobile-first football cinema: let visitors WATCH the original stock footage
   before asking for credentials. Tapping Log in opens the same, fully working
   form as a scrollable bottom sheet; desktop remains pixel-for-pixel unchanged.
   The source footage is landscape, so 16:9 CONTAIN is intentional on portrait
   phones: a full-height COVER crop cuts the QB / receiver off the sides. */
.auth-cinematic .auth-mobile-entry,
.auth-cinematic .auth-mobile-close-button{
  display:none;
}
@media (max-width:900px){
  .auth-v2.auth-cinematic .auth-main{
    position:relative;
    height:100svh;height:100dvh;
    min-height:100svh;min-height:100dvh;
    display:flex;flex-direction:column;
    align-items:center;justify-content:space-between;
    padding:0 clamp(12px,4vw,20px);
  }
  .auth-v2.auth-cinematic .auth-main .auth-hero{
    position:absolute;z-index:4;
    top:max(25px,calc(env(safe-area-inset-top) + 19px));
    left:12px;right:12px;
    display:flex;flex-direction:column;
    justify-content:center;align-items:center;gap:8px;
    flex:0 0 auto;min-height:0;height:auto;width:auto;
    padding:0;margin:0;
  }
  .auth-v2.auth-cinematic .auth-main .auth-hero .auth-logo,
  .auth-v2.auth-cinematic .auth-main .auth-hero .auth-mobile-tagline{
    position:static;top:auto;right:auto;bottom:auto;left:auto;
    width:max-content;max-width:100%;
    margin:0;transform:none;
  }
  .auth-v2.auth-cinematic .auth-main .auth-hero .auth-logo{
    display:inline-flex;justify-content:center;
    flex-wrap:nowrap;
    filter:drop-shadow(0 4px 14px rgba(0,0,0,.86));
  }
  .auth-v2.auth-cinematic .auth-main .auth-hero .auth-mobile-tagline{
    font-size:clamp(10px,2.9vw,13px);
    color:#efffdc;letter-spacing:.16em;
    text-shadow:0 2px 9px rgba(0,0,0,.9);
  }

  /* Full-bleed film behind the whole phone screen (no floating strip with hard
     edges). Framed slightly above center so helmets and the ball stay in view;
     top and bottom fades keep the logo and Log in button readable. */
  .auth-v2.auth-cinematic .auth-broadcast-video{
    display:block;
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    transform:translateZ(0) scale(1.02);
    object-fit:cover;object-position:50% 34%;
    filter:contrast(1.14) saturate(1.04) brightness(1.02);
    border:0;
  }
  .auth-v2.auth-cinematic .auth-broadcast-video.is-live{opacity:1}
  .auth-v2.auth-cinematic .auth-broadcast::before{
    background:
      radial-gradient(ellipse 120% 70% at 50% 46%,transparent 40%,rgba(0,8,8,.45) 100%),
      linear-gradient(180deg,
      rgba(0,8,8,.78) 0%,rgba(0,10,8,.38) 22%,
      rgba(0,8,8,.04) 38%,rgba(0,8,8,.06) 56%,
      rgba(0,9,8,.55) 74%,rgba(0,9,8,.88) 100%);
  }
  .auth-v2.auth-cinematic .auth-broadcast.has-live-footage .auth-broadcast-energy{
    opacity:.075;
  }

  .auth-v2.auth-cinematic .auth-mobile-entry{
    position:absolute;z-index:5;
    left:clamp(16px,5vw,28px);right:clamp(16px,5vw,28px);
    bottom:max(107px,calc(env(safe-area-inset-bottom) + 90px));
    display:flex;flex-direction:column;align-items:center;
    gap:11px;text-align:center;
  }
  .auth-v2.auth-cinematic .auth-mobile-entry-kicker{
    color:#edffdd;letter-spacing:.21em;
    font:800 10px/1.3 'DM Sans',sans-serif;
    text-shadow:0 2px 14px rgba(0,0,0,.95);
  }
  .auth-v2.auth-cinematic .auth-mobile-entry-button{
    display:flex;align-items:center;justify-content:center;gap:18px;
    width:min(100%,380px);min-height:58px;
    border:1px solid #d8ff95;border-radius:18px;
    background:linear-gradient(135deg,#ccff82,#aaf05e);
    color:#07140e;font:800 clamp(17px,4.6vw,19px)/1 'DM Sans',sans-serif;
    letter-spacing:-.005em;cursor:pointer;
    box-shadow:0 14px 34px rgba(0,0,0,.48),0 0 21px rgba(173,255,98,.16);
    -webkit-tap-highlight-color:transparent;
  }
  .auth-v2.auth-cinematic .auth-mobile-entry-button:active{transform:scale(.985)}
  .auth-v2.auth-cinematic .auth-mobile-entry-button:focus-visible{
    outline:3px solid #f5ffe5;outline-offset:4px;
  }
  .auth-v2.auth-cinematic .auth-mobile-entry-button span{
    font-size:20px;line-height:1;position:relative;top:0;
  }
  /* The ordinary login panel is hidden on the entrance screen ONLY.
     We keep its DOM so opening the sheet doesn't reset video playback. */
  .auth-v2.auth-cinematic .auth-main .auth-box{display:none}
  .auth-v2.auth-cinematic .auth-main .auth-legal{
    display:block;position:absolute;z-index:4;
    bottom:max(13px,env(safe-area-inset-bottom));
    left:clamp(12px,4vw,20px);right:clamp(12px,4vw,20px);
    width:auto;max-width:none;margin:0;padding:0;
    text-align:center;
  }
  .auth-v2.auth-cinematic .auth-main .auth-legal .auth-hint{
    font-size:10px;line-height:1.4;margin:0 0 7px;
    color:#d4e7d3;text-shadow:0 2px 8px #000;
  }
  .auth-v2.auth-cinematic .auth-main .auth-info-links{
    display:flex;justify-content:center;gap:18px;
    font-size:10px;line-height:1.2;
  }
  /* Centered sign-in dialog. Full Google/password/passkey/reset/setup
     functionality; it scrolls independently on short displays and when the
     keyboard opens. */
  .auth-v2.auth-cinematic.auth-mobile-form-open .auth-main::before{
    content:"";position:fixed;inset:0;z-index:25;
    background:rgba(2,10,10,.63);
    -webkit-backdrop-filter:blur(7px);
    backdrop-filter:blur(7px);
  }
  .auth-v2.auth-cinematic.auth-mobile-form-open .auth-mobile-entry{
    visibility:hidden;pointer-events:none;
  }
  .auth-v2.auth-cinematic.auth-mobile-form-open .auth-main .auth-box{
    display:block;
    position:fixed;z-index:40;
    left:50%;right:auto;top:50%;bottom:auto;
    transform:translate(-50%,-50%);
    width:calc(100% - 24px);max-width:480px;
    max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y:auto;overscroll-behavior:contain;
    border-radius:24px;
    padding:clamp(34px,5svh,46px) clamp(18px,5vw,28px) clamp(20px,3svh,26px);
    margin:0;
    background:linear-gradient(160deg,rgba(6,28,23,.98),rgba(2,11,12,.99) 64%);
    border:1px solid rgba(183,255,126,.50);
    box-shadow:0 24px 80px rgba(0,0,0,.8),inset 0 1px 0 rgba(221,255,193,.13);
    -webkit-overflow-scrolling:touch;
  }
  .auth-v2.auth-cinematic.auth-mobile-form-open .auth-main .auth-legal{
    display:none;
  }
  .auth-v2.auth-cinematic.auth-mobile-form-open .auth-mobile-close-button{
    position:absolute;right:17px;top:12px;
    display:inline-flex;align-items:center;gap:6px;
    min-height:30px;padding:3px 4px;
    border:0;background:none;
    color:#e7ffcc;font:700 11px/1.2 'DM Sans',sans-serif;
    letter-spacing:.01em;cursor:pointer;
  }
  .auth-v2.auth-cinematic .auth-mobile-close-button:focus-visible{
    outline:2px solid #cbff85;outline-offset:3px;border-radius:5px;
  }
}
@media (max-width:900px) and (orientation:landscape) and (max-height:540px){
  .auth-v2.auth-cinematic .auth-main .auth-hero{
    top:max(8px,env(safe-area-inset-top));left:12px;right:auto;
    align-items:flex-start;
  }
  .auth-v2.auth-cinematic .auth-main .auth-hero .auth-mobile-tagline{display:none}
  .auth-v2.auth-cinematic .auth-broadcast-video{
    top:50%;width:68%;height:88svh;
    transform:translateY(-50%);object-fit:contain;
  }
  .auth-v2.auth-cinematic .auth-mobile-entry{
    left:auto;right:14px;bottom:max(22px,env(safe-area-inset-bottom));
    width:30%;gap:7px;
  }
  .auth-v2.auth-cinematic .auth-mobile-entry-button{min-height:49px}
  .auth-v2.auth-cinematic .auth-main .auth-legal{display:none}
}
@media (max-width:900px) and (prefers-reduced-motion:reduce){
  /* The animation preference still replaces the film with the original poster. */
  .auth-v2.auth-cinematic .auth-broadcast-video{display:none!important}
}

/* ── Smooth cuts between football clips ─────────────────────────────────
   The incoming shot dissolves in ON TOP of the still-playing outgoing shot
   (no dark dip, no frozen frame) over a gentle 1.4s ease. No CSS filters or
   animated transforms on the <video> elements themselves: those force phones
   to re-composite full-screen video every frame and cause dropped frames.
   The green grade comes from the overlay layers above the film. */
.auth-v2.auth-cinematic .auth-broadcast-video{
  transition:opacity 1.4s cubic-bezier(.65,0,.35,1);
  transform:translateZ(0) scale(1.03);
  filter:none;
  will-change:opacity;
  backface-visibility:hidden;
}
.auth-v2.auth-cinematic .auth-broadcast-video.is-live{transform:translateZ(0) scale(1.03)}
.auth-v2.auth-cinematic .auth-broadcast-video.is-entering{z-index:3}
.auth-v2.auth-cinematic .auth-broadcast-video.is-retired{transition:none!important;opacity:0!important}
/* Landscape phones frame the film with translateY; keep that framing. */
@media (max-width:900px) and (orientation:landscape) and (max-height:540px){
  .auth-v2.auth-cinematic .auth-broadcast-video,
  .auth-v2.auth-cinematic .auth-broadcast-video.is-live{transform:translateY(-50%)}
}

/* Phone portrait: logo and Log in sit together as one title card in the
   dead center of the screen, over the film. A soft dark halo behind the
   group keeps both readable; the legal links stay at the bottom. */
@media (max-width:900px) and (orientation:portrait){
  .auth-v2.auth-cinematic .auth-main .auth-hero{
    top:calc(50svh - 118px);
    top:calc(50dvh - 118px);
  }
  .auth-v2.auth-cinematic .auth-mobile-entry{
    top:calc(50svh + 8px);
    top:calc(50dvh + 8px);
    bottom:auto;
  }
  .auth-v2.auth-cinematic .auth-broadcast::before{
    background:
      radial-gradient(ellipse 95% 34% at 50% 50%,rgba(0,8,8,.52) 0%,rgba(0,8,8,.30) 55%,transparent 100%),
      radial-gradient(ellipse 120% 70% at 50% 50%,transparent 45%,rgba(0,8,8,.42) 100%),
      linear-gradient(180deg,
      rgba(0,8,8,.50) 0%,rgba(0,10,8,.12) 22%,rgba(0,8,8,.04) 40%,
      rgba(0,8,8,.04) 62%,rgba(0,9,8,.30) 80%,rgba(0,9,8,.80) 100%);
  }
}


/* Steady broadcast grade + relaxed pacing — November 24.
   The incoming video is z-index:3 while it dissolves. Previously the dark
   ::before grade was ALSO z-index:3, and as a later DOM child the incoming
   clip was painted above the grade. That made each cut flash brighter.
   Pin the grade above BOTH native video layers and leave it unchanged.
   Freeze the energy layer's opacity animation: it was independently changing
   the tint every nine seconds, giving the impression that each clip had its
   own filter. The OG football footage and login layout remain untouched. */
.auth-v2.auth-cinematic .auth-broadcast::before{
  z-index:6;
  opacity:1;
  transition:none;
}
.auth-v2.auth-cinematic .auth-broadcast-energy{
  animation:none!important;
  opacity:.32;
}
.auth-v2.auth-cinematic .auth-broadcast.has-live-footage .auth-broadcast-energy{
  opacity:.32;
  animation:none!important;
}
.auth-v2.auth-cinematic .auth-broadcast-video{
  /* Short source clips: complete the dissolve before the outgoing play ends. */
  transition:opacity .95s cubic-bezier(.55,0,.25,1);
}
/* Match the existing phone's subtler emerald tint, but never pulse it during
   transitions. Keep portrait film framing and the tap-to-log-in panel intact. */
@media (max-width:900px){
  .auth-v2.auth-cinematic .auth-broadcast-energy,
  .auth-v2.auth-cinematic .auth-broadcast.has-live-footage .auth-broadcast-energy{
    opacity:.075;
    animation:none!important;
  }
}
