/* Night mode for the sign-in pages (Noel, 11 Nov 2026). Same Night palette as the dashboard (member-theme.css);
   Mend orange button, logo and fonts unchanged.
   29 Nov 2026 (Noel: white-on-white "8-digit code" on /login): follows the same switch as the rest of the site.
   mend-chrome-v2.js sets html[data-theme] from the visitor's saved look (night → dark, anything else or nothing → light),
   so these rules key on html[data-theme="dark"] instead of the OS setting. An OS-dark visitor with no saved look
   now gets the light page with dark text, matching mend-v2.css. */
:root[data-theme="dark"] { color-scheme: dark; --ui-bg: #000000; --ui-panel: #000000; --ui-text: #FFFFFF; --ui-muted: #B3C6D1;
  --ui-line: color-mix(in srgb, #B3C6D1 45%, #172026); }
html[data-theme="dark"] body { background: #000; color: #fff; --ink: #FFFFFF; --muted: #B3C6D1; --brand-blue-deep: #B3C6D1;
  --brand-blue-gray: #3a444b; --mend-rule: #2a3238; }
html[data-theme="dark"] body :is(h1, h2, h3, label, .status, #no-plan-line, #new-account-line, #new-account-optin-text, #no-plan-optin-text) { color: #fff; }
html[data-theme="dark"] body :is(.login-heading > p:last-child, .hint, .login-help, #intro) { color: #B3C6D1; }
html[data-theme="dark"] body a:not(.button) { color: inherit; }
html[data-theme="dark"] body form input:not([type=checkbox]) { background: #000; color: #fff; border-color: #3a444b; }
html[data-theme="dark"] body form input::placeholder { color: #7f8f99; }
html[data-theme="dark"] body .quiet { color: #fff; }
html[data-theme="dark"] body :is(button, .button).primary, html[data-theme="dark"] body :is(button, .button).primary:hover { color: #172026; }
html[data-theme="dark"] body #google-login .button, html[data-theme="dark"] body #google-login .button:hover { background: #000; color: #fff; border-color: #3a444b; }
html[data-theme="dark"] body :is(.mend-head, .mend-foot) { background: #000; color: #fff; border-color: #1d2328; }
/* Native controls (checkbox, inputs) follow the page look too, not the OS. */
:root[data-theme="light"] { color-scheme: light; }
