/* Midwest Streams sign-in pages (/signin /signup /forgot /pending, 404). Calm, mobile-first, WatchTower steel blue.
   Self-contained: these pages load only this file (+ auth.js). /tv still uses gate.css. */
:root{--bg:#0b0d10;--surface:#15181c;--field:#1c2026;--line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.14);
  --text:#eef1f4;--muted:#8b949e;--accent:#90a8c0;--accent2:#a9bdd1;--ink:#0e141a;--err:#f2a7a0;--ok:#a9d3b5}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body.s-page{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);
  background-image:radial-gradient(900px 420px at 50% -120px,rgba(144,168,192,.10),transparent 70%);
  color:var(--text);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(144,168,192,.15);
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
a{color:var(--accent2);text-decoration:none}
a:hover{color:#fff}
.s-wrap{flex:1;width:100%;max-width:400px;margin:0 auto;padding:20px 20px 24px;display:flex;flex-direction:column;justify-content:center}

/* Brand */
.s-brand{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:22px}
.s-logo{display:block;width:84px;height:84px;object-fit:contain}
.s-word{margin:0;font-size:1.0625rem;font-weight:600;letter-spacing:.02em;color:var(--text)}

/* Card */
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px 20px}
.card h1{margin:0 0 18px;font-size:1.25rem;font-weight:650;letter-spacing:-.01em}
.card .lead{margin:-10px 0 18px;color:var(--muted);font-size:.9375rem}
.form{display:flex;flex-direction:column;gap:14px;margin:0}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label{font-size:.8125rem;font-weight:500;color:#c3cad2}
.field input{width:100%;height:46px;padding:0 14px;border-radius:10px;border:1px solid var(--line2);background:var(--field);
  color:var(--text);font-family:inherit;font-size:16px;line-height:1.2;outline:none;transition:border-color .15s,box-shadow .15s}
.field input:hover{border-color:rgba(255,255,255,.22)}
.field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(144,168,192,.22)}
.field input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px var(--field) inset;-webkit-text-fill-color:var(--text);caret-color:var(--text)}
.pwrap{position:relative}
.pwrap input{padding-right:72px}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:34px;min-width:56px;padding:0 10px;border:0;border-radius:8px;
  background:transparent;color:var(--accent2);font-family:inherit;font-size:.8125rem;font-weight:500;line-height:1;cursor:pointer}
.pw-toggle:hover{background:rgba(144,168,192,.12)}
.hint{margin:0;font-size:.78rem;color:var(--muted)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:10px;border:1px solid transparent;
  font-family:inherit;font-size:.9375rem;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer;transition:background .15s,opacity .15s}
.btn-primary{background:var(--accent);color:var(--ink)}
.btn-primary:hover{background:var(--accent2);color:var(--ink)}
.btn-primary:active{background:#7f97ae}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn-block{width:100%;margin-top:4px}
.btn:focus-visible,.pw-toggle:focus-visible,a:focus-visible,.check:focus-within{outline:2px solid var(--accent2);outline-offset:2px}
.links{display:flex;justify-content:center;margin:2px 0 0;font-size:.875rem}
.small{margin:0;font-size:.8125rem;color:var(--muted);text-align:center}
.center{text-align:center}
.s-alt{margin:16px 0 0;text-align:center;font-size:.875rem;color:var(--muted)}
.notice{margin:0 0 16px;padding:11px 13px;border-radius:10px;font-size:.875rem;line-height:1.45;border:1px solid}
.notice:focus{outline:none}
.notice ul{margin:0;padding-left:18px}
.notice-err{background:rgba(242,167,160,.07);border-color:rgba(242,167,160,.28);color:var(--err)}
.notice-ok{background:rgba(169,211,181,.07);border-color:rgba(169,211,181,.26);color:var(--ok)}
.check{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:10px;background:var(--field);border:1px solid var(--line);
  font-size:.84rem;line-height:1.45;color:#c3cad2;cursor:pointer}
.check input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent)}
.check strong{color:var(--text)}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* TV app bar: slim, first thing on the page so a TV remote reaches it in one press */
.s-app{margin:0 0 30px}
.s-app-link{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);color:var(--text);transition:background .15s,border-color .15s}
.s-app-link:hover{background:rgba(255,255,255,.03);border-color:var(--line2);color:var(--text)}
.s-app-link:focus-visible{outline:2px solid var(--accent2);outline-offset:2px;background:rgba(144,168,192,.08)}
.s-app-ico{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:rgba(144,168,192,.12);color:var(--accent2)}
.s-app-ico svg{width:20px;height:20px}
.s-app-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.s-app-title{font-size:.875rem;font-weight:600}
.s-app-meta{font-size:.78rem;color:var(--muted)}
.s-app-go{flex:none;font-size:.8125rem;font-weight:600;color:var(--accent2)}
.s-app-hint{margin:8px 0 0;text-align:center;font-size:.75rem;color:var(--muted)}
.s-app-hint b{color:#c3cad2;font-weight:600;letter-spacing:.02em}
.s-foot{padding:14px 20px calc(14px + env(safe-area-inset-bottom));text-align:center;font-size:.75rem;color:#5d656e}

@media (min-width:700px){
  .s-wrap{max-width:420px;padding-top:32px}
  .s-logo{width:100px;height:100px}
  .card{padding:30px 28px}
  .s-signup .s-wrap{max-width:480px}
}
@media (max-width:359px){.row2{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
