:root {
    --staff-login-red: #c5242d;
    --staff-login-red-dark: #9f1720;
    --staff-login-ink: #151d2c;
    --staff-login-muted: #707b8f;
    --staff-login-border: #e2e7ef;
    --staff-login-soft: #f6f8fb;
}

body.staff-login-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--staff-login-ink);
    background: #edf1f6;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
[dir="rtl"] body.staff-login-page { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
.staff-login-page *, .staff-login-page *::before, .staff-login-page *::after { box-sizing: border-box; }
.staff-login-page :focus-visible { outline: 3px solid rgba(197, 36, 45, .25); outline-offset: 2px; }
.staff-login-shell { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 22px; }
.staff-login-topbar { position: relative; z-index: 4; width: min(1380px, 100%); min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto 18px; padding: 7px 9px 7px 14px; border: 1px solid rgba(216, 223, 233, .88); border-radius: 17px; background: rgba(255,255,255,.82); box-shadow: 0 9px 30px rgba(21,29,44,.06); backdrop-filter: blur(18px); }
[dir="rtl"] .staff-login-topbar { padding: 7px 14px 7px 9px; }
.staff-login-brand { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--staff-login-ink); text-decoration: none; }
.staff-login-brand:hover { color: var(--staff-login-ink); }
.staff-login-brand > span { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; padding: 5px; overflow: hidden; border: 1px solid var(--staff-login-border); border-radius: 12px; background: #fff; }
.staff-login-brand img { width: 100%; height: 100%; object-fit: contain; }
.staff-login-brand strong { max-width: 240px; overflow: hidden; font-size: 14px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.staff-login-portal-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; color: #fff; border-radius: 12px; background: linear-gradient(135deg, #d8313b, #a91822); box-shadow: 0 10px 24px rgba(185, 28, 38, .2); text-decoration: none; font-size: 12px; font-weight: 750; }
.staff-login-portal-link:hover { color: #fff; }
.staff-login-portal-link svg { width: 18px; height: 18px; }

.staff-login-layout { width: min(1380px, 100%); flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); margin: 0 auto; overflow: hidden; border: 1px solid rgba(216,223,233,.9); border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(21,29,44,.13); }
.staff-login-showcase { position: relative; min-width: 0; min-height: 680px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(34px, 4.5vw, 65px); color: #fff; background: radial-gradient(circle at 86% 12%, rgba(222,52,64,.34), transparent 30%), linear-gradient(145deg, #0e1728 0%, #17243b 62%, #111b2e 100%); isolation: isolate; }
.staff-login-showcase::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 84%); }
.staff-login-showcase::after { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; inset-inline-start: -280px; bottom: -330px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); }
.staff-login-kicker { display: block; color: var(--staff-login-red); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.staff-login-showcase .staff-login-kicker { color: #ff7e87; }
.staff-login-showcase-copy { position: relative; z-index: 1; max-width: 650px; }
.staff-login-showcase-copy h1 { margin: 9px 0 13px; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 850; line-height: 1.13; letter-spacing: -.04em; }
[dir="rtl"] .staff-login-showcase-copy h1 { letter-spacing: 0; }
.staff-login-showcase-copy h1 span { color: #ff6e78; }
.staff-login-showcase-copy p { max-width: 520px; margin: 0; color: #b7c2d3; font-size: 14px; }
.staff-login-visual { position: relative; z-index: 1; min-height: 300px; display: grid; place-items: center; margin-block: 12px; }
.staff-login-visual-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(214,48,60,.25), transparent 67%); }
.staff-login-visual img { position: relative; z-index: 1; width: min(100%, 530px); max-height: 340px; object-fit: contain; filter: drop-shadow(0 28px 45px rgba(0,0,0,.26)); }
.staff-login-showcase-points { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.staff-login-showcase-points span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #dce3ed; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(255,255,255,.055); font-size: 10px; font-weight: 700; }
.staff-login-showcase-points svg { width: 15px; height: 15px; color: #ff7c85; }

.staff-login-panel { min-width: 0; display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 70px); background: #fff; }
.staff-login-panel-inner { width: min(100%, 470px); }
.staff-login-heading { margin-bottom: 25px; }
.staff-login-heading-icon { width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 17px; color: var(--staff-login-red); border: 1px solid #f3d6d9; border-radius: 14px; background: #fff1f2; }
.staff-login-heading-icon svg { width: 21px; height: 21px; }
.staff-login-heading h2 { margin: 5px 0 0; color: var(--staff-login-ink); font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.2; }
.staff-login-heading p { margin: 8px 0 0; color: var(--staff-login-muted); font-size: 12px; }
.staff-login-field { margin-bottom: 16px; }
.staff-login-field > label { display: block; margin-bottom: 7px; color: var(--staff-login-ink); font-size: 11px; font-weight: 800; }
.staff-login-input { position: relative; }
.staff-login-input > span { position: absolute; z-index: 2; top: 50%; inset-inline-start: 14px; display: grid; place-items: center; color: #8b95a7; transform: translateY(-50%); pointer-events: none; }
.staff-login-input > span svg { width: 18px; height: 18px; }
.staff-login-input .form-control { width: 100%; min-height: 52px; padding: 10px 48px 10px 43px; color: var(--staff-login-ink); border: 1px solid #dce2eb; border-radius: 13px !important; outline: 0; background: var(--staff-login-soft); box-shadow: none !important; font-size: 13px; transition: border-color .17s ease, background-color .17s ease, box-shadow .17s ease; }
[dir="rtl"] .staff-login-input .form-control { padding: 10px 43px 10px 48px; }
.staff-login-input .form-control:focus { border-color: rgba(197,36,45,.55); background: #fff; box-shadow: 0 0 0 4px rgba(197,36,45,.08) !important; }
.staff-login-input .form-control::placeholder { color: #a2aab8; }
.staff-password-toggle { position: absolute; z-index: 3; top: 50%; inset-inline-end: 8px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; transform: translateY(-50%); cursor: pointer; }
.staff-password-toggle:hover { background: #fff0f1; }
.staff-password-toggle img { width: 18px; height: 18px; object-fit: contain; }
.staff-password-toggle img:last-child { display: none; }
.staff-password-toggle.show-pass img:first-child { display: none; }
.staff-password-toggle.show-pass img:last-child { display: block; }
.staff-login-error { display: block; margin-top: 6px; color: #b91c2b; font-size: 10px; }
.staff-login-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 3px 0 18px; }
.staff-login-options label { display: inline-flex; align-items: center; gap: 7px; color: var(--staff-login-muted); font-size: 10px; cursor: pointer; }
.staff-login-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--staff-login-red); }
.staff-login-options a { color: var(--staff-login-red); text-decoration: none; font-size: 10px; font-weight: 750; }
.staff-login-submit { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; color: #fff; border: 0; border-radius: 14px; background: linear-gradient(135deg, #db333e, #a91822); box-shadow: 0 13px 30px rgba(185,28,38,.23); font-size: 13px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.staff-login-submit:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 34px rgba(185,28,38,.29); }
.staff-login-submit svg { width: 18px; height: 18px; }
[dir="rtl"] .staff-login-submit svg { transform: rotate(180deg); }
.staff-login-divider { display: flex; align-items: center; gap: 11px; margin: 18px 0 13px; color: #919aaa; font-size: 9px; }
.staff-login-divider::before, .staff-login-divider::after { content: ""; flex: 1; height: 1px; background: var(--staff-login-border); }
.staff-social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.staff-social-login a { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--staff-login-ink); border: 1px solid var(--staff-login-border); border-radius: 11px; background: #fff; text-decoration: none; font-size: 10px; font-weight: 700; }
.staff-social-login img { width: 18px; height: 18px; object-fit: contain; }
.staff-customer-portal-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; margin-top: 20px; padding: 13px; color: var(--staff-login-ink); border: 1px solid #e0e5ed; border-radius: 14px; background: #f7f9fc; text-decoration: none; transition: border-color .17s ease, background-color .17s ease, transform .17s ease; }
.staff-customer-portal-card:hover { color: var(--staff-login-ink); border-color: #efc6c9; background: #fff6f7; transform: translateY(-1px); }
.staff-customer-portal-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--staff-login-red); border-radius: 11px; background: #fff0f1; }
.staff-customer-portal-icon svg { width: 18px; height: 18px; }
.staff-customer-portal-copy { min-width: 0; }
.staff-customer-portal-copy strong { display: block; color: var(--staff-login-ink); font-size: 11px; font-weight: 850; }
.staff-customer-portal-copy small { display: block; margin-top: 2px; overflow: hidden; color: var(--staff-login-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.staff-customer-portal-arrow { display: grid; place-items: center; color: #9aa3b2; }
.staff-customer-portal-arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .staff-customer-portal-arrow { transform: rotate(180deg); }
.staff-login-footer { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 17px; }
.staff-login-footer a { color: var(--staff-login-muted); text-decoration: none; font-size: 9px; font-weight: 700; }
.staff-login-footer a:hover { color: var(--staff-login-red); }
.staff-login-footer span { width: 3px; height: 3px; border-radius: 50%; background: #c0c6d0; }

@media (max-width: 1040px) {
    .staff-login-shell { padding: 14px; }
    .staff-login-layout { grid-template-columns: minmax(0, .9fr) minmax(410px, 1.1fr); }
    .staff-login-showcase { padding: 38px; }
    .staff-login-visual img { max-height: 290px; }
    .staff-login-panel { padding: 38px; }
}

@media (max-width: 820px) {
    .staff-login-layout { width: min(100%, 620px); grid-template-columns: 1fr; }
    .staff-login-showcase { min-height: 330px; padding: 30px; }
    .staff-login-showcase-copy h1 { max-width: 500px; font-size: 2.25rem; }
    .staff-login-visual { position: absolute; inset-inline-end: -35px; bottom: 32px; width: 46%; min-height: auto; opacity: .7; }
    .staff-login-visual img { max-height: 210px; }
    .staff-login-showcase-points { max-width: 55%; margin-top: 70px; }
    .staff-login-panel { padding: 38px 34px; }
}

@media (max-width: 560px) {
    .staff-login-shell { padding: 9px; }
    .staff-login-topbar { min-height: 54px; margin-bottom: 9px; border-radius: 14px; }
    .staff-login-brand > span { width: 38px; height: 38px; }
    .staff-login-brand strong { display: none; }
    .staff-login-portal-link { min-height: 38px; padding: 7px 10px; font-size: 10px; }
    .staff-login-layout { border-radius: 21px; }
    .staff-login-showcase { min-height: 215px; padding: 24px; }
    .staff-login-showcase-copy h1 { margin-block: 7px; font-size: 1.72rem; }
    .staff-login-showcase-copy p { max-width: 80%; font-size: 11px; }
    .staff-login-visual { inset-inline-end: -45px; bottom: 6px; opacity: .45; }
    .staff-login-showcase-points { display: none; }
    .staff-login-panel { padding: 29px 20px 24px; }
    .staff-login-heading-icon { display: none; }
    .staff-login-heading { margin-bottom: 21px; }
    .staff-login-heading h2 { font-size: 1.65rem; }
    .staff-social-login { grid-template-columns: 1fr; }
    .staff-customer-portal-copy small { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .staff-login-page *, .staff-login-page *::before, .staff-login-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
