/* Log-in and sign-up (views/shared/login.ejs, signup.ejs) in the landing page's look (holding.css):
   its colours, its type (Inter, Space Grotesk, Fraunces) and its court. Mockup: docs/_2_1_5_auth_pages_mockup.html.
   Every rule is scoped to .page--brand-auth, so the other auth pages (reset, new password...) keep auth.css. */
.page--brand-auth {
  --navy:#2A3A77; --court:#2E707E; --surround:#D17BA6; --accent:#E4F24A;
  --ink-on-pink:#202C5A;   /* text on the pink: the navy reads only 3.6:1 there, this 4.5:1 */
  --text:#3A4466; --muted:#5A6380; --page:#F6F4F1; --line:#E2DED8; --field:#C9C4BC; --court-tint:#EEF5F6;
  --error:#B42318; --error-bg:#FDEEEC; --info-bg:#EEF5F6; --warning:#8A4B00; --warning-bg:#FFF4E0;
  margin:0; background:#fff; color:var(--navy); font:16px/1.5 Inter, system-ui, sans-serif;
}
.page--brand-auth a { color:inherit; }

/* Header: the landing page's nav row */
.brand-nav { max-width:1200px; margin:0 auto; height:84px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:15px; font-weight:500; }
.brand-nav a { text-decoration:none; color:var(--navy); }
.brand-nav a:hover { color:var(--court); }
.brand-nav .pill { padding:10px 18px; border:1.5px solid var(--navy); border-radius:999px; white-space:nowrap; }

/* Hero, centred like "Smash It!" */
.brand-auth { max-width:440px; margin:0 auto; padding:8px 16px 0; text-align:center; }
.brand-auth .unofficial-line { display:block; width:fit-content; margin:0 auto 10px; padding:4px 12px; border-radius:999px; background:#F1DBE6; font-size:14px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:#6B5F6B; }   /* the pill in components.css */
.brand-auth .brand-logo { display:block; width:min(360px, 84vw); height:auto; margin:0 auto; }
.brand-auth h1 { margin:28px 0 12px; font-family:Fraunces, Georgia, serif; font-weight:900; font-size:clamp(40px, 9vw, 64px); line-height:1; letter-spacing:-.03em; color:var(--navy); }
/* 25 Nov 2026 (user): "Sorry, sign-ups / are closed." on two lines, never split at the hyphen. At full size (64px, from
   about 712px wide) the first line is ~444px, wider than the 408px column, so the heading borrows 24px each side. */
.brand-auth h1.brand-auth__closed { white-space:nowrap; }
@media (min-width:700px){ .brand-auth h1.brand-auth__closed { margin-left:-24px; margin-right:-24px; } }
.brand-auth .lede { margin:0 auto 32px; max-width:36ch; font-size:18px; color:var(--text); }

/* Messages above the form */
.brand-auth .banner { margin:0 0 18px; padding:14px 18px; border-radius:16px; font-size:15px; text-align:left; }
.brand-auth .banner b { display:block; }
.brand-auth .banner small { display:block; margin-top:4px; }
.brand-auth .banner--error { background:var(--error-bg); color:var(--error); }
.brand-auth .banner--info, .brand-auth .banner--success { background:var(--info-bg); color:var(--court); }
.brand-auth .banner--warning { background:var(--warning-bg); color:var(--warning); }
.brand-auth .resend-verification-form { margin:8px 0 0; }
.brand-auth .resend-verification-btn { padding:0; border:0; background:none; color:inherit; font:inherit; font-weight:600; text-decoration:underline; cursor:pointer; }

/* 24 Nov 2026 (user): reset, new password, session expired and confirm email change in this look (mockup
   docs/auth_pages_restyle_mockup.html). They have no court scene, so the column keeps its own space above the footer. */
.brand-auth--plain { padding-bottom:56px; }
.brand-auth .banner--pink { background:#D17BA6; color:#16245A; }   /* the court pink with the deep navy: 4.95:1 (white is 2.96:1) */
.brand-auth .banner--pink a { color:inherit; font-weight:600; }
.brand-auth .banner ul { margin:6px 0 0; padding-left:18px; }
.brand-auth .lede strong { color:var(--navy); overflow-wrap:anywhere; }
.brand-auth .body-copy { margin:0; font-size:15px; color:var(--text); }
.brand-auth a.primary { display:flex; align-items:center; justify-content:center; text-decoration:none; }

/* Form */
.brand-auth form.auth-form { text-align:left; display:flex; flex-direction:column; gap:18px; }
.brand-auth .row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.brand-auth .row > .hint, .brand-auth .row > .err { grid-column:1 / -1; margin-top:-4px; }
.brand-auth label.f { display:block; margin:0 0 6px 4px; font:600 15px "Space Grotesk", sans-serif; letter-spacing:-.01em; color:var(--navy); }
.brand-auth .field { position:relative; }
.brand-auth .field input { width:100%; min-height:52px; padding:0 20px; border-radius:999px; border:1.5px solid var(--field); background:#fff; font:16px Inter, sans-serif; color:var(--navy); box-shadow:none; }
.brand-auth .field input::placeholder { color:#9A9FB2; }
.brand-auth .field input:focus { outline:none; border-color:var(--court); box-shadow:0 0 0 3px rgba(46,112,126,.25); }
.brand-auth .field .show { position:absolute; right:8px; top:50%; transform:translateY(-50%); height:36px; padding:0 14px; border:0; border-radius:999px; background:var(--page); color:var(--navy); font:600 14px Inter, sans-serif; cursor:pointer; }
.brand-auth .field.has-show input { padding-right:84px; }
.brand-auth .hint { margin:6px 0 0 20px; font-size:13px; color:var(--muted); }
.brand-auth .err { margin:6px 0 0 20px; font-size:14px; color:var(--error); }
.brand-auth .invalid input { border-color:var(--error); }
.brand-auth .meta { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; font-size:15px; color:var(--text); }
.brand-auth .meta a, .brand-auth .switch a { color:var(--court); font-weight:600; text-decoration:none; }
.brand-auth .check { display:flex; gap:10px; align-items:flex-start; margin:0; font-size:15px; color:var(--text); cursor:pointer; }
.brand-auth .check input { width:20px; height:20px; margin:1px 0 0; accent-color:var(--court); flex:none; }
.brand-auth .primary { min-height:52px; margin-top:6px; border:0; border-radius:999px; background:var(--navy); color:#fff; font:600 16px Inter, sans-serif; cursor:pointer; }
.brand-auth .primary:hover { background:#22306A; }
.brand-auth .primary:disabled { opacity:.7; cursor:default; }
.page--brand-auth a:focus-visible, .page--brand-auth button:focus-visible { outline:3px solid var(--court); outline-offset:2px; }
.brand-auth .switch { margin:4px 0 0; text-align:center; font-size:15px; color:var(--text); }
.brand-auth .hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Who sees each detail: an open eye for shown to other players, a crossed eye for private */
.brand-auth .vis { display:flex; align-items:flex-start; gap:8px; }
.brand-auth .vis::before { content:""; flex:none; width:16px; height:16px; margin-top:2px; background:currentColor; -webkit-mask:var(--eye) center/16px no-repeat; mask:var(--eye) center/16px no-repeat; }
.brand-auth .vis.public { color:var(--court); }
.brand-auth .vis.public::before { --eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Ccircle cx='8' cy='8' r='2' fill='%23000'/%3E%3C/svg%3E"); }
.brand-auth .vis.private::before { --eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M2.5 13.5l11-11' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Password checklist: grey ring until met, then a green tick (signup.ejs toggles .met) */
.brand-auth .reqs { list-style:none; margin:10px 0 0; padding:0 0 0 20px; display:grid; grid-template-columns:1fr 1fr; gap:4px 16px; font-size:14px; color:var(--muted); }
.brand-auth .reqs li { display:flex; align-items:center; gap:8px; }
.brand-auth .reqs li::before { content:""; flex:none; width:16px; height:16px; border-radius:50%; border:1.5px solid var(--field); box-sizing:border-box; }
.brand-auth .reqs li.met { color:var(--court); }
.brand-auth .reqs li.met::before { border:0; background:var(--court) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Terms row */
.brand-auth .terms-open { width:100%; min-height:52px; border-radius:999px; border:1.5px dashed var(--court); background:#fff; color:var(--court); font:600 16px Inter, sans-serif; cursor:pointer; }
.brand-auth .terms-open:hover { background:var(--court-tint); }
.brand-auth .terms.invalid .terms-open { border-color:var(--error); color:var(--error); }
.brand-auth .terms-done { margin:0; min-height:52px; display:flex; align-items:center; gap:8px; padding:0 20px; border-radius:999px; background:var(--court-tint); color:var(--court); font-weight:600; }
.brand-auth .terms-done .again { margin-left:auto; white-space:nowrap; }
.brand-auth .tick { display:inline-grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%; background:var(--court); color:#fff; font-size:14px; }
.brand-auth .terms .hint { margin-top:10px; }
.page--brand-auth .link { padding:0; border:0; background:none; color:var(--court); font:inherit; font-weight:600; text-decoration:underline; cursor:pointer; }

/* Sign-ups closed: the landing page's "Notify me" form (partials/holding-notify-form.ejs, posted by holding-page.js) */
.brand-auth form.notify { display:flex; gap:10px; }
.brand-auth form.notify > label { position:absolute; left:-9999px; }
.brand-auth form.notify input[type="email"] { flex:1; min-width:0; min-height:52px; padding:0 20px; border-radius:999px; border:1.5px solid var(--field); font:16px Inter, sans-serif; color:var(--navy); }
.brand-auth form.notify input[type="email"]:focus { outline:none; border-color:var(--court); box-shadow:0 0 0 3px rgba(46,112,126,.25); }
.brand-auth form.notify button { min-height:52px; padding:0 24px; border-radius:999px; border:0; background:var(--navy); color:#fff; font:600 16px Inter, sans-serif; white-space:nowrap; cursor:pointer; }
.brand-auth form.notify.done { display:none; }
.brand-auth .thanks { display:none; margin:20px 0 0; font-weight:600; font-size:17px; color:var(--court); }
.brand-auth form.notify.done + .thanks { display:block; }
.brand-auth .form-error { margin:14px 0 0; font-weight:600; color:var(--error); }
.brand-auth .fine { margin:12px 0 0; font-size:13px; color:var(--muted); }

/* The court closes the page (partials/court-scene.ejs, drawn by holding-court.js) */
.page--brand-auth svg.scene { display:block; width:100%; height:auto; min-height:220px; margin-top:56px; }

/* Terms and Privacy pop-ups */
.page--brand-auth dialog.sheet { width:min(640px, calc(100% - 32px)); max-height:min(80vh, 760px); padding:0; border:0; border-radius:24px; color:var(--navy); box-shadow:0 24px 60px rgba(42,58,119,.28); }
.page--brand-auth dialog.sheet[open] { display:flex; flex-direction:column; }
.page--brand-auth dialog.sheet::backdrop { background:rgba(32,44,90,.55); }
.sheet .sheet-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:24px 28px 16px; border-bottom:1.5px solid var(--line); }
.sheet h2 { margin:0; font:700 24px/1.2 "Space Grotesk", sans-serif; letter-spacing:-.02em; color:var(--navy); }
.sheet .updated { margin:4px 0 0; font-size:14px; color:var(--muted); }
.sheet .close { flex:none; width:40px; height:40px; border:1.5px solid var(--navy); border-radius:999px; background:#fff; color:var(--navy); font-size:20px; line-height:1; cursor:pointer; }
.sheet .sheet-body { overflow-y:auto; padding:8px 28px 24px; font-size:15px; color:var(--text); }
.sheet .sheet-body h6 { margin:22px 0 6px; font:600 17px "Space Grotesk", sans-serif; color:var(--navy); }
.sheet .sheet-body h6 i { display:none; }   /* the partials' Font Awesome icons: not loaded on these pages */
.sheet .sheet-body p, .sheet .sheet-body li { line-height:1.6; }
.sheet .sheet-body ul { padding-left:20px; }
.sheet .progress { height:4px; background:var(--line); }
.sheet .progress span { display:block; height:100%; width:0; background:var(--court); transition:width .1s linear; }
.sheet .sheet-foot { display:flex; justify-content:flex-end; gap:10px; padding:16px 28px 20px; border-top:1.5px solid var(--line); }
.sheet .sheet-foot button { min-height:48px; padding:0 22px; border-radius:999px; font:600 15px Inter, sans-serif; cursor:pointer; }
.sheet .decline { border:1.5px solid var(--navy); background:#fff; color:var(--navy); }
.sheet .accept { border:0; background:var(--navy); color:#fff; }
.sheet .accept:disabled { background:var(--line); color:var(--muted); cursor:default; }

@media (max-width:640px) {
  .brand-nav { height:64px; }
  .brand-auth .row, .brand-auth .reqs { grid-template-columns:1fr; }
  .brand-auth form.notify { flex-direction:column; }
  .page--brand-auth dialog.sheet { width:100%; max-width:100%; max-height:88vh; margin:auto 0 0; border-radius:24px 24px 0 0; }
  .sheet h2 { font-size:20px; }
  .sheet .sheet-head { padding:20px 20px 14px; } .sheet .sheet-body { padding:4px 20px 20px; } .sheet .sheet-foot { padding:14px 20px 18px; }
  .sheet .sheet-foot button { flex:1; white-space:nowrap; }
}
@media (prefers-reduced-motion:reduce) { .sheet .progress span { transition:none; } }
