:root { --navy:#0b1d2a; --navy-2:#123247; --lime:#b8ef4a; --paper:#fff; --canvas:#f1f5f1; --line:#dce5df; --muted:#73848d; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:var(--canvas); color:var(--navy); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
body.modal-open { overflow:hidden; }
.auth-layout { display:grid; min-height:100vh; grid-template-columns:minmax(360px,.9fr) minmax(500px,1.1fr); }
.auth-story { display:flex; min-height:100vh; flex-direction:column; justify-content:space-between; padding:48px clamp(36px,6vw,86px); overflow:hidden; background:radial-gradient(circle at 85% 75%,rgba(184,239,74,.16),transparent 24%),linear-gradient(155deg,var(--navy-2),var(--navy) 70%); color:#fff; }
.auth-brand { display:flex; align-items:center; gap:10px; color:#fff; font-size:23px; text-decoration:none; letter-spacing:-1px; }
.auth-brand span { display:grid; width:43px; height:43px; place-items:center; border-radius:14px 14px 14px 4px; background:var(--lime); color:var(--navy); font-size:14px; font-weight:900; transform:rotate(-4deg); }
.auth-brand strong,.auth-story em { color:var(--lime); font-style:normal; }
.auth-eyebrow { margin:0 0 12px; color:#8296a1; font-size:11px; font-weight:900; letter-spacing:1.5px; text-transform:uppercase; }
.auth-story h1 { margin:0; font-size:clamp(42px,5vw,70px); line-height:.98; letter-spacing:-3px; }
.auth-story div > p:last-child { max-width:430px; margin-top:24px; color:#a4b6bf; line-height:1.7; }
.auth-story small { color:#708691; }
.auth-panel { display:grid; place-items:center; padding:42px 24px; }
.auth-card { width:min(440px,100%); padding:42px; border:1px solid var(--line); border-radius:26px; background:#fff; box-shadow:0 22px 60px rgba(17,37,50,.08); }
.auth-card h2 { margin:0; font-size:34px; letter-spacing:-1.5px; }
.auth-subtitle { margin:9px 0 28px; color:var(--muted); font-size:13px; }
form { display:grid; gap:17px; margin-top:24px; }
label { display:grid; gap:7px; color:#445861; font-size:11px; font-weight:800; }
label small { color:#91a0a7; font-size:9px; font-weight:500; }
.consent-check { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:flex-start; padding:12px; border:1px solid var(--line); border-radius:14px; background:#f8faf8; color:#5d7079; font-size:10px; line-height:1.5; }
.consent-check input { width:16px; height:16px; margin-top:1px; accent-color:var(--lime); }
.consent-check label { display:inline; color:inherit; font-size:inherit; font-weight:inherit; }
.terms-inline-link { display:inline; height:auto; padding:0; border:0; border-radius:0; background:transparent; color:#67931f; font-size:inherit; font-weight:900; text-align:left; text-decoration:underline; box-shadow:none; cursor:pointer; }
input:not([type="checkbox"]) { width:100%; height:49px; padding:0 14px; border:1px solid var(--line); border-radius:12px; background:#f8faf8; color:var(--navy); outline:none; }
input:not([type="checkbox"]):focus { border-color:#8fbd35; box-shadow:0 0 0 3px rgba(184,239,74,.2); }
form button { height:49px; border:0; border-radius:12px; background:var(--lime); color:var(--navy); font-size:12px; font-weight:900; cursor:pointer; box-shadow:0 12px 25px rgba(184,239,74,.2); }
form .terms-inline-link { display:inline; width:auto; height:auto; padding:0; border:0; border-radius:0; background:transparent; color:#67931f; font-size:inherit; font-weight:900; text-align:left; text-decoration:underline; box-shadow:none; cursor:pointer; }
form button:disabled { cursor:wait; opacity:.65; }
.form-error { min-height:17px; margin:0; color:#c7443b; font-size:10px; }
.auth-switch { margin:24px 0 0; color:var(--muted); font-size:11px; text-align:center; }
.auth-switch a { color:#67931f; font-weight:900; }
.terms-modal { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:20px; opacity:0; pointer-events:none; transition:.2s ease; }
.terms-modal.show { opacity:1; pointer-events:auto; }
.terms-backdrop { position:absolute; inset:0; background:rgba(5,17,24,.66); backdrop-filter:blur(5px); }
.terms-dialog { position:relative; width:min(720px,100%); max-height:min(86vh,760px); display:grid; grid-template-rows:auto auto 1fr auto; padding:30px; border:1px solid rgba(255,255,255,.22); border-radius:26px; background:#fff; box-shadow:0 28px 80px rgba(5,17,24,.28); outline:none; }
.terms-dialog h2 { margin:0 32px 15px 0; font-size:32px; letter-spacing:-1.3px; }
.terms-close { position:absolute; top:18px; right:18px; width:34px; height:34px; border:0; border-radius:50%; background:#eef3ef; color:var(--navy); font-size:22px; font-weight:900; cursor:pointer; }
.terms-scroll { display:grid; gap:13px; overflow:auto; padding-right:8px; color:#5d7079; }
.terms-scroll article { padding:16px; border:1px solid var(--line); border-radius:16px; background:#f8faf8; }
.terms-scroll h3 { margin:0 0 7px; color:var(--navy); font-size:15px; letter-spacing:-.3px; }
.terms-scroll p { margin:0; font-size:12px; line-height:1.65; }
.terms-scroll a,.terms-actions a { color:#67931f; font-weight:900; }
.terms-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.terms-actions a { font-size:11px; }
.accept-terms { min-width:180px; height:46px; border:0; border-radius:12px; background:var(--lime); color:var(--navy); font-size:12px; font-weight:900; cursor:pointer; box-shadow:0 12px 25px rgba(184,239,74,.2); }
.legal-page { min-height:100vh; padding:34px clamp(18px,5vw,70px) 60px; background:radial-gradient(circle at 90% 0,rgba(184,239,74,.2),transparent 28%),var(--canvas); }
.legal-brand { color:var(--navy); }
.legal-hero { max-width:900px; margin:42px 0 24px; padding:38px; border-radius:28px; background:linear-gradient(135deg,var(--navy-2),var(--navy)); color:#fff; }
.legal-hero h1 { max-width:760px; margin:0; font-size:clamp(34px,5vw,62px); line-height:1; letter-spacing:-2.6px; }
.legal-hero p:last-child { max-width:720px; margin:18px 0 0; color:#a9bbc4; line-height:1.7; }
.legal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.legal-grid article,.legal-links { padding:24px; border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:0 14px 35px rgba(17,37,50,.06); }
.legal-grid h2 { margin:0 0 10px; font-size:18px; letter-spacing:-.5px; }
.legal-grid p,.legal-links { color:var(--muted); font-size:13px; line-height:1.65; }
.legal-grid a,.legal-links a { color:#67931f; font-weight:900; }
.legal-links { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:16px; }
.legal-links p { width:100%; margin:0; color:var(--navy); font-weight:900; }
@media (max-width:800px) { .auth-layout{grid-template-columns:1fr}.auth-story{min-height:290px;padding:30px}.auth-story h1{font-size:40px}.auth-story div>p:last-child,.auth-story small{display:none}.auth-panel{padding:24px 14px 40px}.auth-card{padding:28px 22px} }
@media (max-width:800px) { .terms-modal{padding:12px}.terms-dialog{max-height:90vh;padding:24px 18px}.terms-dialog h2{font-size:25px}.terms-actions{align-items:stretch;flex-direction:column-reverse}.accept-terms{width:100%} }
@media (max-width:800px) { .legal-page{padding:24px 14px 42px}.legal-hero{padding:28px 22px}.legal-grid{grid-template-columns:1fr}.legal-links{display:grid} }
