:root {
  color-scheme: dark;
  --ink: #f3f7f5;
  --muted: #9ba9a5;
  --bg: #07100e;
  --panel: #0d1815;
  --line: #23322e;
  --mint: #59e6b0;
  --mint-ink: #052419;
  --danger: #ff9b94;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--mint); text-underline-offset: .2em; }
button, input { font: inherit; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 14px; color: var(--bg); background: var(--ink); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #b6ffe1; outline-offset: 3px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .85fr) minmax(480px, 1.15fr); }
.login-panel { width: min(520px, 100%); margin: auto; padding: clamp(42px, 7vw, 92px); }
.public-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(64px, 10vh, 120px); letter-spacing: -.02em; }
.public-brand span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--mint-ink); background: var(--mint); border-radius: 10px; font-weight: 900; }
.public-brand strong { font-size: 18px; }
.eyebrow { margin: 0 0 18px; color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(42px, 5.2vw, 72px); line-height: .98; letter-spacing: -.055em; }
.intro { max-width: 470px; margin: 26px 0 38px; color: var(--muted); font-size: 17px; line-height: 1.7; }
form label { display: block; margin-bottom: 9px; color: #dce6e2; font-size: 13px; font-weight: 700; }
.password-row { position: relative; }
.password-row input { width: 100%; min-height: 56px; padding: 0 88px 0 16px; color: var(--ink); background: #091310; border: 1px solid #344640; border-radius: 10px; }
.password-row input:hover { border-color: #526961; }
.password-row input:focus { border-color: var(--mint); }
.icon-button { position: absolute; top: 7px; right: 7px; min-height: 42px; padding: 0 12px; color: #c5d3ce; background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 700; }
.icon-button:hover { background: #16231f; }
.form-error { min-height: 23px; margin: 9px 0 7px; color: var(--danger); font-size: 13px; }
.primary-button { width: 100%; min-height: 54px; color: var(--mint-ink); background: var(--mint); border: 0; border-radius: 10px; cursor: pointer; font-weight: 850; }
.primary-button:hover { background: #7af1c3; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.security-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.security-note span { color: var(--mint); font-size: 11px; }
.security-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.security-note strong { color: #d7e1de; }
.legal-links { display: flex; gap: 22px; margin-top: 36px; font-size: 12px; }
.legal-links a { color: var(--muted); }
.login-art { position: relative; min-height: 100vh; overflow: hidden; background: #0e201a; border-left: 1px solid #1e302a; isolation: isolate; }
.login-art::before { position: absolute; inset: 9% 8%; content: ""; background: radial-gradient(circle at 72% 30%, rgba(89,230,176,.29), transparent 18%), radial-gradient(circle at 42% 66%, rgba(60,122,99,.3), transparent 26%); filter: blur(4px); }
.login-art::after { position: absolute; width: 58vw; height: 58vw; max-width: 780px; max-height: 780px; right: -26%; bottom: -24%; content: ""; border: 1px solid rgba(89,230,176,.28); border-radius: 50%; box-shadow: 0 0 0 70px rgba(89,230,176,.035), 0 0 0 140px rgba(89,230,176,.025); }
.art-grid { position: absolute; inset: 0; z-index: -1; opacity: .17; background-image: linear-gradient(rgba(163,221,200,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(163,221,200,.25) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom right, black, transparent 72%); }
.art-copy { position: absolute; left: clamp(40px, 7vw, 105px); right: 40px; bottom: clamp(50px, 10vh, 120px); }
.art-copy p { margin: 0 0 18px; color: var(--mint); font-size: 11px; letter-spacing: .25em; }
.art-copy strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(60px, 7.8vw, 118px); font-weight: 400; line-height: .86; letter-spacing: -.06em; }
.art-copy span { display: block; margin-top: 30px; color: #9bb0a8; font-size: 13px; }
.notice { margin: -16px 0 28px; padding: 13px 15px; border: 1px solid #306d58; border-radius: 9px; color: #c9f8e5; background: rgba(39,110,82,.2); font-size: 13px; line-height: 1.5; }
.notice[hidden] { display: none; }
.legal-page { background: radial-gradient(circle at 80% 8%, rgba(89,230,176,.08), transparent 27%), var(--bg); }
.legal-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.back-link { display: inline-block; margin-bottom: 72px; color: var(--muted); font-size: 13px; }
.legal-shell h1 { font-size: clamp(48px, 8vw, 86px); }
.updated { margin: 19px 0 68px; color: var(--muted); }
.legal-shell section { display: grid; grid-template-columns: 210px 1fr; gap: 34px; padding: 30px 0; border-top: 1px solid var(--line); }
.legal-shell h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.legal-shell section p { margin: 0; color: #b7c5c0; line-height: 1.75; }
.legal-shell .legal-links { padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-panel { padding: 42px 28px 60px; }
  .public-brand { margin-bottom: 70px; }
  .login-art { display: none; }
}
@media (max-width: 620px) {
  .legal-shell { padding-top: 36px; }
  .back-link { margin-bottom: 52px; }
  .legal-shell section { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
