/* Mission COSMOS sign-in pages (lib/auth_pages.mjs). Self-contained: no web fonts, no icon font, no
   inline styles anywhere in the markup (the page's CSP allows style-src 'self' only). One dark theme,
   the Rocket palette: black, white, purple #990099 for the button (7.4:1 against white text), the
   light purple #D257FC for links and focus (8:1 against the card). */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #000000; color: #ffffff; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 32px; }
.card { width: 100%; max-width: 420px; background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: 8px; padding: 28px 28px 24px; }
.logo { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 0 20px; }
h1 { font-size: 1.35rem; font-weight: 600; margin: 0 0 16px; }
p { margin: 0 0 12px; }
label { display: block; margin: 14px 0 4px; font-weight: 500; }
input[type="text"], input[type="password"] { width: 100%; padding: 10px 12px; font: inherit; color: #ffffff; background: #000000; border: 1px solid #6b6b6b; border-radius: 4px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #D257FC; outline-offset: 2px; }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw-toggle { position: absolute; top: 0; right: 0; bottom: 0; width: 42px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 0 4px 4px 0; color: #c8c8c8; cursor: pointer; }
.pw-toggle:hover { color: #ffffff; }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle[aria-pressed="false"] .eye-hide, .pw-toggle[aria-pressed="true"] .eye-show { display: none; }
button.primary { width: 100%; margin-top: 20px; padding: 11px 14px; font: inherit; font-weight: 600; color: #ffffff; background: #990099; border: 0; border-radius: 4px; cursor: pointer; }
button.primary:hover { background: #ad00ad; }
button.link { padding: 0; font: inherit; color: #D257FC; background: none; border: 0; text-decoration: underline; cursor: pointer; }
a { color: #D257FC; }
.msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 4px; border: 1px solid #6b6b6b; background: #000000; }
.msg.err { border-color: #ff6b6b; }
.msg.ok { border-color: #5fd38d; }
.hint { color: #c8c8c8; font-size: 0.875rem; }
.aside { margin: 16px 0 0; font-size: 0.9rem; }
.signout { margin: 18px 0 0; font-size: 0.9rem; }
