/* The shared Overdrive sign-in page: a match playing at the venue, the account panel on an ink wash */
body.signin { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.still { position: fixed; inset: 0; z-index: 0; background: var(--ink) url('../assets/stadium-wide.jpg') center / cover no-repeat; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease); }
body.live #stage { opacity: 1; }
.shade { position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 14, 16, 0.94) 0%, rgba(13, 14, 16, 0.84) 34%, rgba(13, 14, 16, 0.2) 60%, rgba(13, 14, 16, 0) 74%); }
.panel { position: relative; z-index: 3; width: min(500px, 100%); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--s-10) + var(--safe-t)) 0 calc(var(--s-7) + var(--safe-b)) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.panel h1 { margin: var(--s-4) 0; font: 600 clamp(44px, 5.2vw, 76px)/0.98 var(--serif); letter-spacing: 0; }
.panel h1 em { color: var(--cream-2); }
.panel .lede { margin: 0 0 var(--s-6); color: #d6d0c5; font-size: 17px; line-height: 1.7; max-width: 440px; }
.panel section { display: grid; gap: 12px; }
.panel .help { margin: 2px 2px 0; }
.email { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.email summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; transition: color 0.3s var(--ease); }
.email summary:hover, .email[open] summary { color: var(--text); }
.email summary::-webkit-details-marker { display: none; }
.email summary::after { content: ''; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.35s var(--ease); }
.email[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.email form { display: grid; gap: 14px; margin-top: 16px; }
.row-2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.who b { display: block; font: 600 26px/1.1 var(--serif); }
.who small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); font: 600 20px/1 var(--serif); }
.team { margin: 4px 0 6px; color: var(--muted); font-size: 14.5px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
#signout { justify-self: start; margin-top: 6px; }
.fine { margin: 26px 0 0; color: var(--faint); font-size: 13px; }
.fine a { color: var(--muted); text-underline-offset: 3px; }
.match-tag { position: fixed; z-index: 3; right: 28px; bottom: calc(24px + var(--safe-b)); display: flex; align-items: center; gap: 10px; color: rgba(242, 237, 227, 0.85); font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.match-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--od); animation: live 2s var(--ease) infinite; }
@keyframes live { 50% { opacity: 0.25; } }
.noscript { position: relative; z-index: 4; padding: 40px; }
@media (min-width: 768px) and (max-width: 1279px) {
  .shade { background: linear-gradient(90deg, rgba(13, 14, 16, 0.94) 0%, rgba(13, 14, 16, 0.84) 46%, rgba(13, 14, 16, 0.15) 72%, rgba(13, 14, 16, 0) 86%); }
  .panel { width: min(480px, 58vw); }
}
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
  .shade { background: linear-gradient(0deg, rgba(13, 14, 16, 0.96) 0%, rgba(13, 14, 16, 0.86) 52%, rgba(13, 14, 16, 0.1) 80%); }
  .still { background-image: url('../assets/stadium-tall.jpg'); }
  .panel { justify-content: flex-end; padding: 36vh var(--gutter) calc(var(--s-6) + var(--safe-b)); width: min(600px, 100%); }
  .match-tag { display: none; }
}

/* review pass: the panel arrives in reading order; the match label reads as a caption, not a console line */
@keyframes siRise { from { opacity: 0; transform: translateY(16px); } }
.panel > * { animation: siRise 0.9s var(--ease-out) backwards; }
.panel > :nth-child(2) { animation-delay: 0.1s; } .panel > :nth-child(3) { animation-delay: 0.22s; }
.panel > :nth-child(4), .panel > :nth-child(5) { animation-delay: 0.32s; } .panel > :nth-child(n+6) { animation-delay: 0.42s; }
.match-tag { font: 500 13px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: rgba(242, 237, 227, 0.86); animation: siRise 0.9s var(--ease-out) 0.8s backwards; }
.match-tag i { animation: live 2s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .panel > *, .match-tag { animation: none; } }

/* round 2: three balanced lines, no orphaned "for the" */
.panel h1 { font-size: clamp(42px, 4.4vw, 64px); max-width: 11.5em; text-wrap: balance; }

/* email and password: a sliding Sign in / Create account switch, then the form */
.mode-seg { position: relative; isolation: isolate; gap: 0; margin-bottom: var(--s-2); }
.mode-seg::before { content: ''; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 9px; background: var(--cream); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 0.42s var(--ease-out); }
.mode-seg button, .mode-seg button[aria-pressed="true"] { background: transparent; transition: color 0.3s var(--ease-out); }
.mode-seg button[aria-pressed="true"] { color: var(--ink); }
#auth-form { display: grid; gap: var(--s-4); }
#auth-form .fld:not([hidden]) { animation: siRise 0.45s var(--ease-out); }
.pw-eye { flex: none; height: 32px; padding: 0 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.row-2.under { margin-top: calc(-1 * var(--s-2)); }
@media (prefers-reduced-motion: reduce) { .mode-seg::before { transition: none; } #auth-form .fld { animation: none; } }
#auth-form .err { margin: calc(-1 * var(--s-2)) 2px 0; min-height: 0; }
#auth-form .err:empty { display: none; }
@media (min-width: 768px) and (max-height: 960px) { .panel { padding-top: calc(96px + var(--safe-t)); } .panel h1 { margin: var(--s-3) 0; } .panel .lede { margin-bottom: var(--s-5); } }

/* ---- layout pass */
/* wide screens: the left inset grows with the window, so the text column is sized on its own (it used to shrink to
   ~130 px at 1920 and stack the headline one word per line) */
@media (min-width: 1280px) { .panel { width: calc(460px + max(var(--gutter), calc((100vw - var(--wrap)) / 2))); max-width: 100%; } }
/* short laptop screens: a smaller headline so the whole form fits without scrolling under the nav */
@media (min-width: 768px) and (max-height: 820px) { .panel h1 { font-size: clamp(38px, 6.4vh, 56px); } .panel { padding-bottom: calc(var(--s-5) + var(--safe-b)); } }
/* phones held sideways: the nav scrolls away with the panel and the match caption steps aside instead of covering the form */
@media (min-width: 768px) and (max-height: 500px) and (orientation: landscape) {
  body.signin .nav { position: absolute; }
  .panel { padding-top: calc(var(--s-8) + 28px + var(--safe-t)); }
  .match-tag { display: none; }
}
/* Create account hides the only button in the row under the form; the empty row no longer leaves a double gap */
#auth-form .row-2.under:not(:has(> :not([hidden]))) { display: none; }

/* ---- alignment pass: every label, message and control in the panel starts on one edge; gaps come from the --s-* scale */
/* the nav spans the panel's measure, and its last link's text sits as far in from the right as the mark does from the left */
body.signin .nav { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); padding-right: 4px; }
@media (max-width: 767px) { body.signin .nav { padding-right: 0; } }
.panel .lab { margin: 0 0 var(--s-2); }
#auth-form .err, .panel .help { margin: calc(-1 * var(--s-2)) 0 0; }
/* the text link under the button lines up with the fields rather than floating on its own padding */
#forgot { padding: 0; border: 0; }
#forgot:hover { background: transparent; color: var(--text); }
/* SHOW ends as far in from the field's right edge as the typed text starts from its left */
.pw-eye { margin-right: -10px; }
.fine { margin-top: var(--s-6); }
