:root {
    --staff-ink: #132d35;
    --staff-muted: #66777c;
    --staff-green: #08735d;
    --staff-green-dark: #0d3b3f;
    --staff-green-deep: #092e32;
    --staff-soft: #edf6f3;
    --staff-line: #d9e4e1;
    --staff-error: #b84141;
}

html { background: #f6f8f7; }
body { margin: 0; color: var(--staff-ink); background: #f6f8f7; font-family: Manrope, sans-serif !important; -webkit-font-smoothing: antialiased; }
.staff-auth-page, .staff-auth-page * { box-sizing: border-box; }
.staff-auth-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr); overflow: hidden; }

.staff-auth-brand { position: relative; overflow: hidden; color: #fff; background: var(--staff-green-dark); }
.staff-auth-brand::before { content: ''; position: absolute; top: -180px; right: -160px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: inset 0 0 0 65px rgba(255,255,255,.022), inset 0 0 0 130px rgba(255,255,255,.018); }
.staff-auth-brand::after { content: ''; position: absolute; right: 8%; bottom: -125px; width: 270px; height: 270px; background: rgba(35,151,123,.13); border-radius: 55% 45% 48% 52%; transform: rotate(20deg); }
.staff-auth-brand__inner { position: relative; z-index: 1; width: min(100%, 660px); min-height: 100%; margin-left: auto; padding: clamp(32px, 5vw, 70px); display: flex; flex-direction: column; }
.staff-auth-logo { align-self: flex-start; display: inline-flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.staff-auth-logo > span, .staff-auth-mobile-brand > span { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; color: #fff; background: #12836d; border: 1px solid rgba(255,255,255,.15); border-radius: 13px 13px 13px 4px; }
.staff-auth-logo img { width: 48px; height: 48px; object-fit: contain; padding: 3px; background: #fff; border-radius: 12px; }
.staff-auth-logo > div, .staff-auth-mobile-brand > div { min-width: 0; display: grid; line-height: 1.15; }
.staff-auth-logo strong { max-width: 310px; overflow: hidden; color: #fff; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.staff-auth-logo small { margin-top: 4px; color: #a8c3c0; font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.staff-auth-brand__content { width: min(100%, 560px); margin: auto 0; padding: 60px 0; }
.staff-auth-eyebrow { margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; color: #9edaca; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.staff-auth-brand__content h1 { margin: 0 0 22px; color: #fff; font-size: clamp(38px, 4.2vw, 59px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
.staff-auth-brand__content > p { max-width: 535px; margin: 0; color: #b4cac7; font-size: 14px; line-height: 1.75; }
.staff-auth-benefits { margin-top: 38px; padding-top: 28px; display: grid; gap: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.staff-auth-benefits > div { display: flex; align-items: center; gap: 13px; }
.staff-auth-benefits > div > i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: #b8ebdd; background: rgba(255,255,255,.07); border-radius: 10px; font-size: 12px; }
.staff-auth-benefits span { display: grid; }
.staff-auth-benefits strong { color: #edf8f5; font-size: 12px; }
.staff-auth-benefits small { color: #91afab; font-size: 10px; }
.staff-auth-brand__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #86a6a2; font-size: 9px; }
.staff-auth-brand__footer span, .staff-auth-brand__footer a { display: inline-flex; align-items: center; gap: 7px; }
.staff-auth-brand__footer a { color: #b6d3cf; text-decoration: none; font-weight: 700; transition: color .2s; }
.staff-auth-brand__footer a:hover { color: #fff; }
.staff-auth-brand__footer span i { color: #58b9a0; }

.staff-auth-form-panel { position: relative; padding: clamp(35px, 5vw, 75px); display: grid; place-items: center; background: #f7f9f8; }
.staff-auth-form-panel::before { content: ''; position: absolute; top: 0; right: 0; width: 160px; height: 160px; opacity: .28; background-image: radial-gradient(#9dbdb5 1px, transparent 1px); background-size: 14px 14px; }
.staff-auth-form-wrap { position: relative; z-index: 1; width: min(100%, 455px); }
.staff-auth-mobile-brand { display: none; }
.staff-auth-heading { margin-bottom: 30px; }
.staff-auth-heading > span { display: block; margin-bottom: 9px; color: var(--staff-green); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.staff-auth-heading h2 { margin: 0 0 9px; color: var(--staff-ink); font-size: clamp(31px, 3vw, 40px); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; }
.staff-auth-heading p { margin: 0; color: var(--staff-muted); font-size: 12px; line-height: 1.65; }

.staff-auth-alert { margin-bottom: 21px; padding: 13px 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid; border-radius: 11px; font-size: 11px; }
.staff-auth-alert > i { margin-top: 3px; }
.staff-auth-alert > div { display: grid; }
.staff-auth-alert strong { font-size: 11px; }
.staff-auth-alert span { line-height: 1.5; }
.staff-auth-alert--error { color: #743b3b; background: #fff2f1; border-color: #efceca; }
.staff-auth-alert--success { color: #27624f; background: #edf9f4; border-color: #cce9df; }

.staff-login-form { display: grid; gap: 19px; }
.staff-auth-field { display: grid; gap: 7px; color: #40565d; font-size: 11px; font-weight: 800; }
.staff-auth-input { position: relative; min-height: 50px; display: flex; align-items: center; color: #738589; background: #fff; border: 1px solid #cedbd7; border-radius: 10px; transition: border-color .2s, box-shadow .2s, background .2s; }
.staff-auth-input:focus-within { color: var(--staff-green); background: #fff; border-color: var(--staff-green); box-shadow: 0 0 0 4px rgba(8,115,93,.09); }
.staff-auth-input.has-error { border-color: #d16d6d; }
.staff-auth-input > i { width: 46px; flex: 0 0 46px; text-align: center; font-size: 13px; }
.staff-auth-input input { width: 100%; height: 48px; min-width: 0; padding: 0 13px 0 0; color: var(--staff-ink); background: transparent; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important; font-family: inherit; font-size: 13px; }
.staff-auth-input input::placeholder { color: #9aa7aa; }
.staff-password-toggle { width: 45px; height: 48px; flex: 0 0 45px; display: grid; place-items: center; color: #76878b; background: transparent; border: 0; border-radius: 8px; transition: color .2s, background .2s; }
.staff-password-toggle:hover { color: var(--staff-green); background: var(--staff-soft); }
.staff-password-toggle:focus-visible, .staff-login-button:focus-visible, .staff-auth-options a:focus-visible, .staff-auth-portals a:focus-visible { outline: 3px solid rgba(8,115,93,.22); outline-offset: 2px; }
.staff-auth-options { margin-top: -2px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10px; }
.staff-auth-options label { display: flex; align-items: center; gap: 8px; color: #5d7076; cursor: pointer; }
.staff-auth-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--staff-green); }
.staff-auth-options a { color: var(--staff-green); font-weight: 800; text-decoration: none; }
.staff-auth-options a:hover { color: #055846; }
.staff-login-button { width: 100%; min-height: 52px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--staff-green); border: 1px solid var(--staff-green); border-radius: 10px; font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.staff-login-button:hover { background: #05614f; border-color: #05614f; box-shadow: 0 10px 24px rgba(8,115,93,.2); transform: translateY(-1px); }
.staff-login-button:disabled { opacity: .7; cursor: wait; transform: none; }
.staff-login-button > i { font-size: 10px; }
.staff-auth-separator { margin: 27px 0 17px; display: flex; align-items: center; gap: 12px; color: #8a999d; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.staff-auth-separator::before, .staff-auth-separator::after { content: ''; height: 1px; flex: 1; background: var(--staff-line); }
.staff-auth-portals { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.staff-auth-portals a { min-width: 0; padding: 12px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; color: var(--staff-ink); background: #fff; border: 1px solid var(--staff-line); border-radius: 10px; text-decoration: none; transition: border-color .2s, background .2s; }
.staff-auth-portals a:hover { background: var(--staff-soft); border-color: #a9cdc3; }
.staff-auth-portals a > i:first-child { width: 30px; height: 30px; display: grid; place-items: center; color: var(--staff-green); background: var(--staff-soft); border-radius: 8px; font-size: 11px; }
.staff-auth-portals a > i:last-child { color: #99a7a4; font-size: 8px; }
.staff-auth-portals span { min-width: 0; display: grid; line-height: 1.25; }
.staff-auth-portals strong { font-size: 10px; }
.staff-auth-portals small { color: var(--staff-muted); font-size: 8px; }
.staff-auth-security { margin: 19px 0 0; color: #8a989b; font-size: 8px; line-height: 1.55; text-align: center; }
.staff-auth-security i { margin-right: 5px; color: #6d9f92; }

@media (max-width: 1100px) {
    .staff-auth-page { grid-template-columns: minmax(390px, .85fr) minmax(490px, 1.15fr); }
    .staff-auth-brand__inner { padding: 42px; }
    .staff-auth-brand__content h1 { font-size: 42px; }
    .staff-auth-form-panel { padding: 45px; }
}

@media (max-width: 820px) {
    .staff-auth-page { display: block; overflow: visible; background: #f7f9f8; }
    .staff-auth-brand { min-height: 235px; }
    .staff-auth-brand::before { top: -250px; right: -190px; }
    .staff-auth-brand__inner { width: 100%; min-height: 235px; padding: 27px clamp(22px, 6vw, 48px) 55px; }
    .staff-auth-logo { display: none; }
    .staff-auth-brand__content { margin: 0; padding: 15px 0 0; text-align: center; }
    .staff-auth-brand__content h1 { max-width: 620px; margin: 0 auto 12px; font-size: 34px; }
    .staff-auth-brand__content > p { max-width: 580px; margin-inline: auto; font-size: 11px; }
    .staff-auth-benefits, .staff-auth-brand__footer { display: none; }
    .staff-auth-form-panel { min-height: auto; margin-top: -37px; padding: 0 24px 45px; background: transparent; }
    .staff-auth-form-panel::before { display: none; }
    .staff-auth-form-wrap { width: min(100%, 520px); padding: 30px; background: #fff; border: 1px solid var(--staff-line); border-radius: 20px; box-shadow: 0 22px 55px rgba(16,47,52,.13); }
    .staff-auth-mobile-brand { margin-bottom: 25px; padding-bottom: 20px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--staff-line); }
    .staff-auth-mobile-brand > span { width: 39px; height: 39px; flex-basis: 39px; }
    .staff-auth-mobile-brand strong { font-size: 13px; }
    .staff-auth-mobile-brand small { color: var(--staff-muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
}

@media (max-width: 520px) {
    .staff-auth-brand { min-height: 220px; }
    .staff-auth-brand__inner { min-height: 220px; padding-inline: 18px; }
    .staff-auth-eyebrow { margin-bottom: 13px; font-size: 8px; }
    .staff-auth-brand__content h1 { font-size: 29px; }
    .staff-auth-brand__content > p { display: none; }
    .staff-auth-form-panel { padding: 0 13px 30px; }
    .staff-auth-form-wrap { padding: 25px 18px; border-radius: 17px; }
    .staff-auth-heading { margin-bottom: 23px; }
    .staff-auth-heading h2 { font-size: 29px; }
    .staff-auth-heading p { font-size: 10px; }
    .staff-auth-options { align-items: flex-start; }
    .staff-auth-portals { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
    .staff-auth-form-panel { padding-inline: 9px; }
    .staff-auth-form-wrap { padding-inline: 15px; }
    .staff-auth-options { align-items: flex-start; flex-direction: column; gap: 11px; }
}

@media (max-height: 760px) and (min-width: 821px) {
    .staff-auth-brand__inner { padding-block: 32px; }
    .staff-auth-brand__content { padding: 35px 0; }
    .staff-auth-brand__content h1 { font-size: 40px; }
    .staff-auth-benefits { margin-top: 25px; padding-top: 20px; gap: 11px; }
    .staff-auth-form-panel { padding-block: 28px; }
    .staff-auth-heading { margin-bottom: 22px; }
    .staff-login-form { gap: 14px; }
    .staff-auth-separator { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .staff-auth-page *, .staff-auth-page *::before, .staff-auth-page *::after { transition: none !important; }
}
