/* Shared staff login, matching Essentily Vendor composition. Login-only selectors. */
html:root body.staff-auth-body{--sl-bg:#f7f9f4;--sl-panel:#fff;--sl-ink:#193f30;--sl-muted:#60726a;--sl-line:#dce5d7;--sl-soft:#f1f6ea;--sl-focus:#487449;margin:0!important;padding:0!important;display:block!important;min-height:100dvh;background:radial-gradient(ellipse at 12% 12%,#a8c7a910,transparent 40%),radial-gradient(ellipse at 88% 5%,#ff8b0309,transparent 35%),var(--sl-bg)!important;color:var(--sl-ink)!important;font-family:Poppins,Arial,sans-serif}
html:root:is([data-admin-theme=dark],[data-support-theme=dark]) body.staff-auth-body{--sl-bg:#101915;--sl-panel:#19251f;--sl-ink:#f0f5ef;--sl-muted:#b9c7bc;--sl-line:#3c5041;--sl-soft:#24332a;--sl-focus:#9bce86}
html:root body.staff-auth-body .staff-auth-shell{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);align-items:center;gap:clamp(40px,8vw,180px);width:100%;max-width:1640px;min-height:100dvh;margin:0 auto;padding:64px clamp(24px,6vw,110px)}
.staff-auth-brand,.staff-auth-form-panel{min-width:0}.staff-auth-logo{display:block;object-fit:contain;object-position:left center;width:250px;max-width:100%;height:auto;margin-bottom:66px}
html:root:is([data-admin-theme=dark],[data-support-theme=dark]) .staff-auth-logo{content:url('../images/staff-login-logo-white.png')}
.staff-auth-kicker{display:block;color:#c84a0a;font-size:11px;font-weight:700;letter-spacing:.13em;margin-bottom:18px;background:none!important}
html:root:is([data-admin-theme=dark],[data-support-theme=dark]) .staff-auth-kicker{color:#ff9c55}
html:root body.staff-auth-body .staff-auth-brand h1{font-family:Nunito,Arial,sans-serif;font-size:clamp(40px,4vw,64px);font-weight:900;line-height:1.05;letter-spacing:-.04em;color:var(--sl-ink)!important;margin:0 0 30px;overflow-wrap:anywhere}
html:root body.staff-auth-body .staff-auth-brand h1 span{color:#ff520f!important}
.staff-auth-brand>p:not(.staff-auth-footer){max-width:500px;font-size:14px;line-height:1.85;color:var(--sl-muted);margin:0}
.staff-auth-features{max-width:500px;margin-top:36px}.staff-auth-features>div{display:flex;align-items:center;gap:28px;border-top:1px solid var(--sl-line);padding:18px 0}.staff-auth-features .ess-ui-icon{width:24px;height:24px;flex:none;color:#487449}.staff-auth-features strong{display:block;font-size:13px;font-weight:700;color:var(--sl-ink)}.staff-auth-features small{display:block;margin-top:5px;font-size:12px;line-height:1.6;color:var(--sl-muted)}
html:root:is([data-admin-theme=dark],[data-support-theme=dark]) .staff-auth-features .ess-ui-icon{color:#9bce86}
.staff-auth-footer{display:flex;align-items:center;gap:9px;font-size:11px!important;line-height:1.6;color:var(--sl-muted);margin:28px 0 0!important}.staff-auth-footer>span{width:7px;height:7px;flex:none;border-radius:50%;background:#619957}
html:root body.staff-auth-body .staff-auth-card{box-sizing:border-box;width:100%;padding:34px;border:1px solid var(--sl-line);border-radius:26px;background:var(--sl-panel);box-shadow:0 14px 38px #1b352014;backdrop-filter:blur(16px);min-width:0}
.staff-auth-mobile-logo{display:none}.staff-auth-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#fff3e7;border:1px solid #ffd8b8;color:#c85819;margin-bottom:28px}.staff-auth-mark .ess-ui-icon{width:24px;height:24px}
html:root:is([data-admin-theme=dark],[data-support-theme=dark]) .staff-auth-mark{background:var(--sl-soft);border-color:var(--sl-line);color:#ff9c55}
html:root body.staff-auth-body .staff-auth-card h2{font-family:Nunito,Arial,sans-serif;font-size:32px;font-weight:900;line-height:1.2;margin:0 0 14px;color:var(--sl-ink)!important;letter-spacing:-.025em}
.staff-auth-card>.staff-auth-kicker{font-size:10px;margin-bottom:14px}.staff-auth-intro{font-size:13px;line-height:1.85;color:var(--sl-muted);margin:0 0 28px}
.staff-auth-form{display:flex;flex-direction:column;gap:10px;min-width:0}.staff-auth-form label{font-size:12px;line-height:1.5;font-weight:700;margin:10px 0 0;color:var(--sl-ink)}
html:root body.staff-auth-body .staff-auth-form input{box-sizing:border-box;width:100%;min-width:0;min-height:54px;height:auto;padding:14px 16px;border:1px solid var(--sl-line);border-radius:12px;background:var(--sl-panel)!important;color:var(--sl-ink)!important;font-family:inherit;font-size:15px;line-height:1.5}
html:root body.staff-auth-body .staff-auth-form input:focus{outline:2px solid var(--sl-focus)!important;outline-offset:1px!important;border-color:var(--sl-focus)!important;box-shadow:none!important}
html:root body.staff-auth-body .staff-auth-form .staff-auth-password-toggle{align-self:flex-end;display:block;width:auto;height:auto;min-height:40px;padding:8px 12px;border:1px solid var(--sl-line);border-radius:10px;background:var(--sl-soft)!important;color:var(--sl-ink)!important;font-size:12px;font-weight:600;cursor:pointer}
html:root body.staff-auth-body .staff-auth-form .staff-auth-submit{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:auto;min-height:52px;padding:14px 18px;margin-top:10px;border:1px solid #ff520f;border-radius:13px;background:linear-gradient(130deg,#ff8b03,#ff520f)!important;color:#fff!important;font-family:inherit;font-size:14px;font-weight:700;line-height:1.5;cursor:pointer;box-shadow:0 8px 18px #ff520f13}
.staff-auth-submit .ess-ui-icon{width:20px;height:20px;flex:none}.staff-auth-security{display:flex;align-items:start;gap:14px;background:var(--sl-soft);border:1px solid var(--sl-line);border-radius:13px;padding:16px;margin-top:28px}.staff-auth-security>.ess-ui-icon{color:#ff520f;flex:none;width:22px;height:22px}.staff-auth-security p{margin:0;font-size:11px;line-height:1.7;color:var(--sl-muted)}.staff-auth-security strong{display:block;color:var(--sl-ink);font-size:12px;margin-bottom:3px}.staff-auth-security span{display:block}
.staff-auth-card :is(.ess-feedback,.support-alert){margin:0 0 20px}
html:root body.staff-auth-body .staff-auth-form button:focus-visible{outline:2px solid var(--sl-focus)!important;outline-offset:3px}
html:root:is([data-admin-contrast=true],[data-support-contrast=true]) body.staff-auth-body{--sl-line:#87988b;--sl-muted:#35493c}
html:root:is([data-admin-theme=dark][data-admin-contrast=true],[data-support-theme=dark][data-support-contrast=true]) body.staff-auth-body{--sl-line:#839f87;--sl-muted:#e0ebe2}
@media(max-width:980px){html:root body.staff-auth-body .staff-auth-shell{display:flex;justify-content:center;align-items:center;padding:28px 20px 90px}.staff-auth-brand{display:none}.staff-auth-form-panel{width:100%;max-width:480px}.staff-auth-mobile-logo{display:block;width:220px;margin:0 0 28px}.staff-auth-mark{margin-bottom:20px}}
@media(max-width:480px){html:root body.staff-auth-body .staff-auth-shell{padding:24px 16px 90px}html:root body.staff-auth-body .staff-auth-card{padding:26px 22px;border-radius:22px}html:root body.staff-auth-body .staff-auth-card h2{font-size:28px}.staff-auth-form input{font-size:16px!important}.staff-auth-mobile-logo{width:200px}.staff-auth-intro{margin-bottom:20px}.staff-auth-security{margin-top:24px}}

/* Shared feedback: inline SVGs, contextual placement and persistent validation. */
.staff-auth-body{--ea-panel:#fff;--ea-ink:#183d2c;--ea-muted:#4d6053;--ea-success:#28623d;--ea-error:#a63232;--ea-warning:#80520b;--ea-info:#285c86;--ea-line:#d7e3d9;--ea-soft:#f5f8f3}
:is([data-admin-theme=dark],[data-support-theme=dark],[data-public-theme=dark]){--ea-panel:#1d2923;--ea-ink:#e8f2e7;--ea-muted:#c2d0bf;--ea-success:#a8d8ab;--ea-error:#ffb7b0;--ea-warning:#ffda95;--ea-info:#add3f2;--ea-line:#536851;--ea-soft:#26382d}
html body.staff-auth-body .essentily-alert{--ea-tone:var(--ea-info);display:flex!important;align-items:flex-start!important;gap:12px!important;padding:14px 16px!important;margin:16px 0 20px!important;border:1px solid var(--ea-line)!important;border-left:4px solid var(--ea-tone)!important;border-radius:14px!important;background:var(--ea-soft)!important;color:var(--ea-ink)!important;box-shadow:inset 0 1px 0 #ffffff10!important;text-align:left!important;min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
html body.staff-auth-body .essentily-alert--success{--ea-tone:var(--ea-success)}html body.staff-auth-body .essentily-alert--error{--ea-tone:var(--ea-error)}html body.staff-auth-body .essentily-alert--warning{--ea-tone:var(--ea-warning)}
html body.staff-auth-body .essentily-alert__icon{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px;height:30px;border-radius:9px;background:var(--ea-panel)!important;color:var(--ea-tone)!important;padding:4px;box-sizing:border-box}
html body.staff-auth-body .essentily-alert__icon svg{width:22px;height:22px;display:block}
html body.staff-auth-body .essentily-alert__content{flex:1;min-width:0;padding:0!important;background:none!important}
html body.staff-auth-body .essentily-alert .essentily-alert__title{display:block;color:var(--ea-ink)!important;font-size:14px;font-weight:700;line-height:1.5;margin:0!important}
html body.staff-auth-body .essentily-alert .essentily-alert__content :is(p,li){color:var(--ea-muted)!important;font-size:12px;line-height:1.7;margin:4px 0 0!important}
html body.staff-auth-body .essentily-alert ul{padding-left:18px;margin:6px 0 0!important}html body.staff-auth-body .essentily-alert .essentily-alert__reference{display:block;color:var(--ea-ink)!important;font-size:12px;font-weight:600;line-height:1.6;margin-top:8px}
html body.staff-auth-body .essentily-alert a{color:var(--ea-tone)!important;text-decoration:underline;text-underline-offset:3px}
:is([data-admin-contrast=true],[data-support-contrast=true],[data-public-contrast=true]) .essentily-alert :is(p,li){color:var(--ea-ink)!important}

/* Password visibility is a native, keyboard-accessible control inside the field. */
.staff-auth-password-field{position:relative;min-width:0;width:100%}
html:root body.staff-auth-body .staff-auth-password-field>input{padding-right:62px!important}
html:root body.staff-auth-body .staff-auth-password-field>.staff-auth-password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:9px;background:transparent!important;color:var(--sl-muted)!important;box-shadow:none}
html:root body.staff-auth-body .staff-auth-password-field>.staff-auth-password-toggle:hover{background:var(--sl-soft)!important;color:var(--sl-ink)!important}
.staff-auth-password-toggle>svg{display:block;width:22px;height:22px;pointer-events:none}
.staff-auth-password-toggle>svg[hidden]{display:none!important}
html:root body.staff-auth-body .staff-auth-password-field>.staff-auth-password-toggle:focus-visible{outline:2px solid var(--sl-focus)!important;outline-offset:-2px}
