/* Lamplight, auth: the site's look since October 17, 2026 (the founder's pick). Every rule is scoped to
   html[data-look="lamplight"], which each page sets on its <html> tag; without it the page falls back to styles.css. */

/* The eight sign-in and password pages (tutor/ and admin/: login, forgot-password, reset-password,
   change-password). site.css already gives them the night ground with the lamp's pool, the lit card, the
   headings, fields and buttons; this file adds only what is theirs. Nothing moves here beyond site.css's one
   small entrance of the card (none with reduced motion). */

/* Change password sits under the dashboard bar on the plain page: the same pool of lamp light from the top
   right as the sign-in pages, so the card is lit the same way */
html[data-look="lamplight"] body:has(> main.auth-main){
  background:radial-gradient(90vw 70vh at 100% 0%, rgba(255,176,104,.1), rgba(255,176,104,.03) 50%, transparent 76%) no-repeat, var(--ll-base);}
html[data-look="lamplight"] main.auth-main .auth-card .intro b{color:var(--ll-paper);}

/* The card's heading says whose sign-in it is ("Tutor sign in", "Admin sign in"; no small label over the card since
   the October 31, 2026 design check). A two-line heading ("Reset your password" on a phone) keeps clear of the line
   under it: a little more line height and room below than site.css gives it. Same weight as site.css's rule, later. */
html[data-look="lamplight"] .auth-card :is(h1, h2){line-height:1.06; margin-bottom:14px;}

/* Cloudflare's "are you a person?" box (human-check.js): soft corners like the fields around it, instead of its own
   square ones. Its frame sits in Cloudflare's closed shadow root, so the corners are cut on the box that holds it:
   as wide as the frame (300px, or the 150px compact one on very small phones), no line gap under it. If human-check.js
   ever renders it at size "flexible" (the field's full width), width:fit-content must go, or the frame stays 300px. */
html[data-look="lamplight"] #human-check > div{width:fit-content; max-width:100%; line-height:0; border-radius:var(--r-field); overflow:hidden;}
/* The box is hidden until Cloudflare needs a tick (human-check.js, "interaction-only"); its gap comes only with it. */
#human-check.is-asking{margin:4px 0 12px;}

/* "You're already signed in as ...": inside the sign-in card in place of the form (October 19, 2026), so plain text
   and buttons on the card itself */
html[data-look="lamplight"] .auth-col .auth-banner b{color:var(--ll-paper);}

/* Reset password: "Checking your link…" while the page reads the link */
html[data-look="lamplight"] .auth-wait{color:var(--ll-ink-2);}
/* The note under the card */
html[data-look="lamplight"] .auth-note{color:var(--ll-ink-2);}

/* Reset password's "Request a new link" is a link (<a>), so site.css's glass key (button.btn only) missed it and
   it glowed as the lamp button. It gets the same glass key as every other main button on these pages (site.css's
   rule names it too, since November 16, 2026; here only its solid colour when less see-through is asked for). Same
   weight as site.css's rule, so a disabled or waiting state would still win. */
@media (prefers-reduced-transparency: reduce){
  html[data-look="lamplight"] :where(.auth-card) a.btn:where(:not(.btn-secondary, .btn-quiet, .btn-danger, [aria-pressed="true"])){--b-bg:#5F3C2B; --b-bg-h:#6F4932;}
}

/* Phones and touch screens: "Forgot password?" and "Back to sign in" get a 44px tap area (styles.css), which
   brought their keyboard focus ring onto the button just above. 4px more room keeps the ring clear of it. */
@media (max-width:720px), (pointer:coarse){ html[data-look="lamplight"] .auth-links{margin-top:20px;} }

