:root { font-family: Arial, Helvetica, sans-serif; color: #111; background: #fff8e7; font-synthesis: none; --ink: #111; --lime: #d7ff3f; --orange: #ff6038; --blue: #79d9ff; --paper: #fff; --green: #086b35; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background-color: #fff8e7; background-image: linear-gradient(rgba(17,17,17,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.07) 1px, transparent 1px); background-size: 28px 28px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr); }

.manifesto { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 6vw, 95px); border-right: 4px solid var(--ink); background: var(--lime); }
.brand { display: flex; width: fit-content; align-items: center; gap: 14px; color: var(--ink); font: 900 24px "Arial Black", Impact, sans-serif; letter-spacing: -1px; text-decoration: none; }
.brand span { display: grid; place-items: center; overflow: hidden; width: 50px; height: 50px; padding: 2px; border: 3px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-4deg); }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.label { align-self: flex-start; margin: 58px 0 17px; padding: 8px 10px; border: 2px solid var(--ink); background: var(--blue); box-shadow: 3px 3px 0 var(--ink); font: 900 11px "Courier New", monospace; }
h1, h2 { margin: 0; font-family: Impact, "Arial Black", sans-serif; font-weight: 900; line-height: .87; text-transform: uppercase; }
h1 { max-width: 680px; font-size: clamp(66px, 8vw, 116px); letter-spacing: -2px; }
h1 em { color: var(--orange); font-style: normal; -webkit-text-stroke: 2px var(--ink); }
.summary { max-width: 600px; margin: 28px 0; font-size: clamp(16px, 1.4vw, 20px); font-weight: 750; line-height: 1.45; }
.security-note { display: grid; gap: 6px; align-self: flex-start; max-width: 540px; padding: 14px 16px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.security-note strong { font: 900 11px "Courier New", monospace; }
.security-note span { font-size: 13px; font-weight: 700; line-height: 1.4; }

.login-card { min-width: 0; width: min(620px, calc(100% - 48px)); align-self: center; justify-self: center; margin: 36px 24px; padding: clamp(25px, 3.5vw, 46px); border: 4px solid var(--ink); background: var(--paper); box-shadow: 12px 12px 0 var(--ink); }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--ink); font: 900 10px "Courier New", monospace; text-underline-offset: 3px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 31px; border: 3px solid var(--ink); }
.auth-tab { display: flex; justify-content: center; align-items: center; min-height: 46px; margin: 0; padding: 10px 8px; border: 0; border-radius: 0; background: #fff; box-shadow: none; font: 900 12px "Courier New", monospace; cursor: pointer; }
.auth-tab + .auth-tab { border-left: 3px solid var(--ink); }
.auth-tab.active { background: var(--blue); }
.auth-tab:focus-visible { position: relative; z-index: 1; outline: 4px solid var(--orange); outline-offset: -4px; }
h2 { font-size: clamp(48px, 5vw, 74px); letter-spacing: -2px; overflow-wrap: anywhere; }
.login-card > p { margin: 13px 0 26px; font-weight: 700; line-height: 1.45; }

form { display: grid; gap: 10px; }
.register-only { display: grid; gap: 7px; }
.register-only[hidden] { display: none; }
label { font: 900 11px "Courier New", monospace; }
.optional { margin-left: 4px; color: #555; font-size: 9px; }
.field-help { margin-top: -2px; color: #555; font-size: 11px; font-weight: 650; line-height: 1.4; }
input { width: 100%; min-width: 0; min-height: 50px; padding: 13px; border: 3px solid var(--ink); border-radius: 0; background: #fff; font: 700 16px Arial, sans-serif; }
input:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: #9b1717; background: #fff1f1; }

.password-field { display: grid; grid-template-columns: 1fr auto; }
.password-field input { grid-area: 1 / 1; padding-right: 94px; }
.password-field button { grid-area: 1 / 1; align-self: center; justify-self: end; min-height: 36px; margin: 0 7px 0 0; padding: 8px; border: 2px solid var(--ink); background: var(--cream); box-shadow: none; font: 900 9px "Courier New", monospace; cursor: pointer; }
.password-field button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.password-help { margin: -2px 0 3px; color: #555; font: 700 10px/1.4 "Courier New", monospace; }
.password-help.ready { color: var(--green); }

.consent-group { gap: 9px; margin-top: 8px; }
.consent { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 10px; padding: 13px; border: 2px solid var(--ink); background: var(--cream); font: 700 12px/1.45 Arial, sans-serif; }
.consent.optional-consent { border-style: dashed; background: #fff; }
.consent input { width: 21px; height: 21px; min-height: 0; margin: 0; padding: 0; accent-color: var(--orange); }
.consent a { color: var(--ink); font-weight: 900; text-decoration-thickness: 2px; }
.consent strong { font-size: 10px; text-transform: uppercase; }

.submit-button { display: flex; justify-content: space-between; align-items: center; min-height: 54px; margin-top: 5px; padding: 15px 18px; border: 3px solid var(--ink); border-radius: 0; background: var(--lime); box-shadow: 6px 6px 0 var(--ink); font: 900 12px "Courier New", monospace; cursor: pointer; }
.submit-button:hover:not(:disabled) { background: var(--orange); transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.submit-button:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.submit-button:disabled { opacity: .6; cursor: wait; }
.message { min-height: 20px; margin: 2px 0 0; color: #9b1717; font-size: 12px; font-weight: 800; line-height: 1.4; }
.message:not(:empty) { padding: 10px; border: 2px solid currentColor; background: #fff1f1; }
.message.success { color: var(--green); background: #ecfff2; }

.legacy-access { margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--ink); }
.legacy-access summary { width: fit-content; font: 800 10px "Courier New", monospace; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.legacy-access p { margin: 10px 0 0; color: #555; font-size: 11px; line-height: 1.45; }

.login-card h3 { margin: 25px 0 8px; font: 900 13px "Courier New", monospace; }
.login-card article p, .login-card p { line-height: 1.45; }
.login-card a { color: var(--ink); font-weight: 900; text-decoration-thickness: 2px; }
.login-card > small { display: block; margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--ink); font: 700 10px "Courier New", monospace; }

@media(max-width:900px) {
  .login-shell { grid-template-columns: minmax(0, .75fr) minmax(520px, 1.25fr); }
  .manifesto { padding-inline: 38px; }
  h1 { font-size: clamp(58px, 8vw, 86px); }
}

@media(max-width:760px) {
  .login-shell { grid-template-columns: 1fr; }
  .manifesto { min-height: auto; padding: 30px 24px 38px; border-right: 0; border-bottom: 4px solid var(--ink); }
  .label { margin-top: 40px; }
  h1 { font-size: clamp(58px, 16vw, 86px); }
  .summary { margin-bottom: 18px; }
  .login-card { width: calc(100% - 36px); margin: 30px 18px 44px; padding: 27px 22px; }
}

@media(max-width:390px) {
  .auth-tab { padding-inline: 4px; font-size: 10px; }
  .login-card { width: calc(100% - 24px); margin-inline: 12px; }
  h2 { font-size: 45px; }
}
