@font-face{font-family:FuturaDisplay;src:url("public/assets/fonts/futura-display-xbd.otf") format("opentype");font-weight:800;font-display:swap}
@font-face{font-family:FuturaDisplay;src:url("public/assets/fonts/futura-display-bold.otf") format("opentype");font-weight:700;font-display:swap}
@font-face{font-family:FuturaPT;src:url("public/assets/fonts/futura-pt-book.otf") format("opentype");font-weight:400;font-display:swap}

/* Brand palette: ETO green, gold and cream. Everything else is a tint or neutral of these. */
:root{
  --green:#176131;--green-bright:#20743a;--green-deep:#124e2b;--gold:#b8994d;--gold-light:#d8bd72;--cream:#f9f5ef;
  color-scheme:light;
  --bg:#f5f5f0;--surface:#fff;--surface-2:#fbfbf8;--text:#14221a;--muted:#78827c;
  --line:#dfe4df;--line-soft:#eef0ec;--line-strong:#cbd4cd;
  --accent:#20743a;--accent-text:#20743a;--focus-ring:#2b7a411c;
  --tint-green:#eaf3ec;--tint-gold:#f6efdb;--gold-text:#8a6d22;--neutral-chip:#f0f0ec;
  --input-bg:#fff;--placeholder:#a5ada7;--icon:#7d8981;
  --disabled-bg:#e7ebe7;--disabled-text:#8c968f;--disabled-border:#d3d9d4;
  --range-track:#ffffffd9;--thumb-ring:#fff;--toast-bg:#14221a;--toast-text:#fff;--shadow:#17271b16;
  --tone-gold:#b8994d;--tone-green:#20743a;--tone-gold-bg:#f8f1de;--tone-green-bg:#e2efe4;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#0c1a11;--surface:#132619;--surface-2:#0f2015;--text:#f3eee4;--muted:#9aab9f;
    --line:#26402e;--line-soft:#1c3223;--line-strong:#36553f;
    --accent:#2c8a48;--accent-text:#8cc79b;--focus-ring:#2c8a4840;
    --tint-green:#1b3a25;--tint-gold:#332c1a;--gold-text:#d8bd72;--neutral-chip:#1c2f22;
    --input-bg:#0f2015;--placeholder:#6d8274;--icon:#8a9e90;
    --disabled-bg:#1c2f22;--disabled-text:#6d8274;--disabled-border:#26402e;
    --range-track:#ffffff26;--thumb-ring:#f3eee4;--toast-bg:#f3eee4;--toast-text:#0c1a11;--shadow:#00000066;
    --tone-gold:#d8bd72;--tone-green:#5fae75;--tone-gold-bg:#2a2416;--tone-green-bg:#12301d;
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0c1a11;--surface:#132619;--surface-2:#0f2015;--text:#f3eee4;--muted:#9aab9f;
  --line:#26402e;--line-soft:#1c3223;--line-strong:#36553f;
  --accent:#2c8a48;--accent-text:#8cc79b;--focus-ring:#2c8a4840;
  --tint-green:#1b3a25;--tint-gold:#332c1a;--gold-text:#d8bd72;--neutral-chip:#1c2f22;
  --input-bg:#0f2015;--placeholder:#6d8274;--icon:#8a9e90;
  --disabled-bg:#1c2f22;--disabled-text:#6d8274;--disabled-border:#26402e;
  --range-track:#ffffff26;--thumb-ring:#f3eee4;--toast-bg:#f3eee4;--toast-text:#0c1a11;--shadow:#00000066;
  --tone-gold:#d8bd72;--tone-green:#5fae75;--tone-gold-bg:#2a2416;--tone-green-bg:#12301d;
}

:root{font-family:FuturaPT,"Trebuchet MS",sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:var(--bg);color:var(--text)}.login-layout{display:grid;grid-template-columns:54% 46%;min-height:100vh;background:var(--surface)}.brand-panel{position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:clamp(34px,6.8vw,88px);color:var(--cream);background:linear-gradient(135deg,#216f39 0%,var(--green) 58%,var(--green-deep) 58%);isolation:isolate}.brand-panel:after{position:absolute;z-index:-1;content:"";width:145%;height:1px;left:-15%;bottom:8%;background:var(--gold);transform:rotate(-45deg);transform-origin:center}.brand-top{display:flex;align-items:center;gap:18px;color:var(--gold-light);font-family:FuturaDisplay,sans-serif;font-size:14px;letter-spacing:.16em}.gold-rule{display:block;width:46px;height:4px;background:var(--gold);flex:none}.brand-copy{margin:auto 0;max-width:690px}.crest{display:block;width:min(430px,73%);height:auto;max-height:380px;object-fit:contain;margin:0 0 24px -4px;filter:drop-shadow(0 14px 24px #103e2a44)}.brand-copy h1{margin:0;font-family:FuturaDisplay,sans-serif;font-weight:800;font-size:clamp(42px,5.1vw,76px);line-height:1.06;letter-spacing:-.035em}.brand-copy h1 span{color:var(--gold-light)}.brand-copy p{margin:36px 0 0;color:#f9f5efcc;font-size:21px;line-height:1.55;letter-spacing:.015em}.brand-footer{color:#f9f5ef8c;font-size:15px;letter-spacing:.04em}.form-panel{display:flex;align-items:center;justify-content:center;padding:64px clamp(42px,7.3vw,140px);background:var(--surface)}.form-wrap{width:min(100%,560px)}.form-wrap>.gold-rule{width:48px;height:4px;margin-bottom:30px}.form-wrap h2{margin:0;font-family:FuturaDisplay,sans-serif;font-size:40px;line-height:1.1;font-weight:800}.intro{margin:14px 0 48px;color:var(--muted);font-size:21px;letter-spacing:.01em}.form-wrap form>label:not(.remember){display:block;margin:0 0 10px;font-family:FuturaDisplay,sans-serif;font-size:16px;letter-spacing:.08em}.password-label{margin-top:29px!important}.input-shell{height:64px;display:flex;align-items:center;gap:17px;padding:0 19px;border:1.5px solid var(--line);border-radius:13px;background:var(--input-bg);box-shadow:0 1px 2px #13251a08;transition:border-color .18s,box-shadow .18s}.input-shell:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--focus-ring)}.field-icon,.visibility-toggle svg{width:23px;height:23px;fill:none;stroke:var(--icon);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.input-shell input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:400 20px FuturaPT,sans-serif}.input-shell input::placeholder{color:var(--placeholder)}.visibility-toggle{display:grid;place-items:center;padding:6px;border:0;background:transparent;cursor:pointer}.visibility-toggle:hover svg{stroke:var(--accent-text)}.options-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:23px 0 31px}.remember{display:flex;align-items:center;gap:11px;cursor:pointer;font-size:17px}.remember input{position:absolute;width:1px;height:1px;opacity:0}.checkmark{display:grid;place-items:center;width:25px;height:25px;border-radius:6px;background:var(--input-bg);border:1.5px solid var(--line-strong)}.remember input:checked+.checkmark{background:var(--green-bright);border-color:var(--green-bright)}.checkmark svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;opacity:0}.remember input:checked+.checkmark svg{opacity:1}.remember input:focus-visible+.checkmark{outline:3px solid var(--focus-ring);outline-offset:2px}.text-link{padding:3px 0;color:var(--accent-text);font:700 16px FuturaPT,sans-serif;border:0;background:transparent;cursor:pointer}.text-link:hover,.support a:hover{text-decoration:underline}.submit-button{display:flex;align-items:center;justify-content:center;gap:17px;width:100%;min-height:70px;border:0;border-radius:13px;border-bottom:4px solid var(--gold);background:var(--green-bright);color:#fff;font:700 19px FuturaDisplay,sans-serif;letter-spacing:.14em;cursor:pointer;transition:filter .15s,transform .15s}.submit-button:hover{filter:brightness(1.07)}.submit-button:active{transform:translateY(2px)}.submit-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.support{margin:38px 0 0;text-align:center;color:var(--muted);font-size:17px}.support a{color:var(--accent-text);font-weight:700;text-decoration:none}.status-message{min-height:0;margin:0;color:var(--accent-text);font-size:15px;text-align:center}.status-message:not(:empty){margin-top:15px}
@media(max-width:850px){.login-layout{display:flex;flex-direction:column;background:var(--bg)}.brand-panel{height:365px;min-height:365px;align-items:center;justify-content:flex-start;padding:34px 20px;background:linear-gradient(135deg,#216f39 0%,var(--green) 57%,var(--green-deep) 57%)}.brand-panel:after{bottom:-14%;left:-26%;width:160%}.brand-top,.brand-footer,.brand-copy h1,.brand-copy p{display:none}.brand-copy{margin:0;display:flex;justify-content:center;width:100%}.crest{width:min(255px,57vw);height:255px;margin:2px 0 0;object-fit:contain}.form-panel{position:relative;display:block;margin:-74px 20px 42px;padding:48px clamp(28px,7vw,68px) 42px;border-radius:28px;box-shadow:0 18px 52px var(--shadow)}.form-wrap{max-width:none}.form-wrap>.gold-rule{width:92px;height:5px;margin-bottom:40px}.form-wrap h2{font-size:48px}.intro{margin:16px 0 52px;font-size:clamp(18px,4.2vw,25px)}.form-wrap form>label:not(.remember){font-size:20px;margin-bottom:13px}.password-label{margin-top:41px!important}.input-shell{height:76px;border-radius:19px;padding:0 23px;gap:22px}.field-icon{width:28px;height:28px}.input-shell input{font-size:clamp(20px,4.5vw,26px)}.visibility-toggle svg{width:29px;height:29px}.options-row{margin:34px 0 42px}.remember{font-size:22px;gap:14px}.checkmark{width:32px;height:32px;border-radius:8px}.text-link{font-size:clamp(17px,4.4vw,23px)}.submit-button{min-height:82px;border-radius:21px;font-size:24px}.support{margin-top:47px;font-size:clamp(18px,4.4vw,24px)}}
@media(max-width:480px){.brand-panel{height:320px;min-height:320px}.crest{height:228px}.form-panel{margin:-55px 16px 28px;padding:36px 22px 34px;border-radius:26px}.form-wrap>.gold-rule{margin-bottom:31px}.form-wrap h2{font-size:42px}.intro{margin:12px 0 36px}.password-label{margin-top:32px!important}.input-shell{height:66px;padding:0 16px;gap:14px}.field-icon{width:24px;height:24px}.options-row{margin:27px 0 32px}.remember{font-size:18px;gap:10px}.checkmark{width:27px;height:27px}.submit-button{min-height:70px;font-size:21px}.support{margin-top:34px}.desktop-break{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.brand-mobile-label{display:none}
@media(max-width:850px){.brand-mobile-label{display:block;margin-top:0;color:var(--gold-light);font-family:FuturaDisplay,sans-serif;font-size:17px;letter-spacing:.18em}.crest{margin-bottom:8px}}
@media(max-width:480px){.options-row{flex-wrap:wrap}.remember{font-size:17px}.text-link{font-size:16px}}
.status-message.is-error{color:var(--gold-text)}
.demo-box{margin-top:28px;padding:18px 20px;border:1.5px dashed var(--line);border-radius:13px;text-align:center}.demo-box p{margin:0 0 12px;font-size:15px;color:var(--muted)}.demo-box code{color:var(--accent-text);font-weight:700}.demo-chips{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.demo-chips button{padding:9px 16px;border:1.5px solid var(--accent);border-radius:999px;background:transparent;color:var(--accent-text);font:700 15px FuturaPT,sans-serif;cursor:pointer}.demo-chips button:hover{background:var(--green-bright);border-color:var(--green-bright);color:#fff}

/* Light / dark switch */
.theme-toggle{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);cursor:pointer}.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.theme-toggle:hover{border-color:var(--accent)}
.theme-fab{position:fixed;top:16px;right:16px;z-index:5}

/* Readability and personal palettes: brand anchors always remain ETO green/gold/cream. */
:root { --muted:#58665e; --placeholder:#65736a; --support-accent:#176131; }
:root[data-palette="sand"] { --bg:#f4e9db; --surface:#fffaf3; --surface-2:#f8f0e5; --line:#dbcbb9; --line-soft:#e9ded0; --support-accent:#974d36; }
:root[data-palette="slate"] { --bg:#eaf0f3; --surface:#f9fcfd; --surface-2:#f0f5f7; --line:#c7d5dc; --line-soft:#dce5ea; --support-accent:#365d73; }
:root[data-palette="forest"] { --bg:#e9eee5; --surface:#f8faf5; --surface-2:#eff3e9; --line:#cad5c1; --line-soft:#e0e7d8; --support-accent:#486443; }
:root[data-resolved-theme="dark"] { --muted:#b0bfb4; --placeholder:#a3b4a8; --support-accent:#b6cdbd; }
:root[data-resolved-theme="dark"][data-palette="sand"] { --bg:#211b15; --surface:#2d261e; --surface-2:#261f18; --line:#574939; --line-soft:#403527; --text:#f8eee3; --support-accent:#dfab91; }
:root[data-resolved-theme="dark"][data-palette="slate"] { --bg:#141e25; --surface:#1d2a33; --surface-2:#19242c; --line:#3a505e; --line-soft:#2c3d48; --text:#edf3f6; --support-accent:#a3c0d0; }
:root[data-resolved-theme="dark"][data-palette="forest"] { --bg:#151e16; --surface:#202d20; --surface-2:#1b261b; --line:#40553e; --line-soft:#30432e; --support-accent:#b7ccaa; }
.appearance-trigger { border:1px solid #f9f5ef80; border-radius:10px; padding:10px 12px; background:transparent; color:var(--cream); font:400 15px FuturaPT,sans-serif; cursor:pointer; }
.appearance-floating { position:fixed; right:68px; top:16px; z-index:5; background:var(--surface); color:var(--text); border-color:var(--line-strong); }
.appearance-dialog { width:min(960px,calc(100% - 24px)); max-height:calc(100dvh - 32px); padding:28px; background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:22px; }
.appearance-dialog::backdrop { background:#091b13b3; }
.appearance-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.appearance-head h2 { font:800 36px FuturaDisplay,sans-serif; margin:8px 0; }
.eyebrow { color:var(--accent-text); font-size:13px; letter-spacing:.14em; }
.appearance-close { border:1px solid var(--line-strong); color:var(--text); background:var(--surface); border-radius:10px; width:44px; height:44px; cursor:pointer; }
.appearance-intro,.idea-box p { color:var(--muted); line-height:1.5; }
.mode-options,.palette-options { border:0; padding:0; margin:24px 0; }
.mode-options legend,.palette-options legend { font-size:18px; font-weight:700; margin-bottom:12px; }
.mode-options label { display:inline-flex; gap:8px; padding:10px 14px; margin:0 8px 8px 0; border:1px solid var(--line-strong); border-radius:10px; }
.appearance-dialog input { accent-color:var(--green); }
.palette-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.palette-option { padding:14px; border:2px solid var(--line); border-radius:14px; background:var(--surface); cursor:pointer; min-width:0; }
.palette-option:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 2px var(--focus-ring); }
.palette-name { margin-left:6px; font-size:18px; font-weight:700; }
.palette-preview { display:block; margin:12px 0; border-radius:10px; overflow:hidden; background:var(--preview-bg); color:#14221a; }
.preview-bar { display:flex; justify-content:space-between; padding:10px 14px; background:#176131; color:#f9f5ef; border-bottom:3px solid #b8994d; font-weight:700; }
.preview-bar span { font-size:10px; letter-spacing:.12em; align-self:center; }
.preview-body { display:grid; gap:12px; padding:16px; }
.preview-card { display:grid; gap:8px; padding:12px; border-radius:8px; background:var(--preview-surface); }
.preview-card small { font-size:13px; }
.preview-button { padding:8px 12px; background:#176131; color:#fff; border-bottom:2px solid #b8994d; border-radius:6px; width:fit-content; font-size:12px; }
.preview-accent { color:var(--preview-extra); font-size:14px; font-weight:700; }
.palette-note { display:block; color:var(--muted); font-size:15px; }
.palette-swatches { display:flex; margin-top:12px; gap:6px; }
.palette-swatches i { width:24px; height:24px; border:1px solid #65736a66; border-radius:50%; }
.idea-box { border-top:1px solid var(--line-strong); margin-top:28px; padding-top:8px; }
.idea-box h3 { font:700 28px FuturaDisplay,sans-serif; margin-bottom:8px; }
#idea-form { display:grid; gap:10px; }
#idea-text { width:100%; background:var(--surface); color:var(--text); border:1px solid var(--line-strong); border-radius:10px; padding:12px; font:400 17px FuturaPT,sans-serif; resize:vertical; }
.idea-submit { justify-self:start; padding:12px 20px; background:var(--green); color:#fff; border:0; border-radius:10px; font:700 16px FuturaPT,sans-serif; cursor:pointer; }
.idea-list { list-style:none; padding:0; }
.idea-list li { display:flex; justify-content:space-between; gap:16px; padding:14px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.idea-list button { align-self:start; background:var(--surface); color:var(--text); border:1px solid var(--line-strong); border-radius:8px; padding:8px; cursor:pointer; }
button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid var(--accent-text); outline-offset:3px; }
@media(max-width:600px) { .palette-grid { grid-template-columns:1fr; } .appearance-dialog { padding:20px; } .appearance-trigger { font-size:13px; padding:8px; } }

@media (max-width:850px) {
  .brand-panel { height:180px; min-height:180px; padding:18px; }
  .crest { height:104px; width:104px; margin:4px 0; }
  .form-panel { margin-top:-20px; }
  .form-wrap>.gold-rule { margin-bottom:20px; }
  .form-wrap h2 { font-size:clamp(30px,7vw,46px); }
  .intro { margin-bottom:24px; }
  .input-shell { height:54px; }
  .password-label { margin-top:20px!important; }
  .submit-button { min-height:54px; }
}
