:root {
    --auth-green: #087052;
    --auth-green-deep: #043d30;
    --auth-green-dark: #032d24;
    --auth-gold: #d9a441;
    --auth-ink: #142f27;
    --auth-muted: #6d7f79;
    --auth-border: #dce7e2;
}

.login-one {
    min-height: 100vh;
    height: auto;
    margin: 0;
    color: var(--auth-ink);
    background: #edf4f1;
    background-image:
        radial-gradient(circle at 8% 8%, rgba(8, 112, 82, .12), transparent 28rem),
        radial-gradient(circle at 90% 90%, rgba(217, 164, 65, .1), transparent 24rem);
    font-family: Poppins, Cairo, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    padding: clamp(18px, 3vw, 44px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 60px));
    display: grid;
    grid-template-columns: minmax(420px, .88fr) minmax(520px, 1.12fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(26, 62, 51, .14), 0 8px 24px rgba(26, 62, 51, .08);
}

.auth-form-panel {
    min-width: 0;
    padding: 34px clamp(34px, 5vw, 72px) 26px;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.98);
}

.auth-form-wrap {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.auth-form-topbar {
    margin-bottom: clamp(54px, 8vh, 92px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-secure-label, .auth-language {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
}

.auth-secure-label { color: #799089; }
.auth-secure-label i { color: var(--auth-green); font-size: 16px; }
.auth-language {
    padding: 8px 12px;
    color: var(--auth-ink);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    transition: .2s ease;
}
.auth-language:hover {
    color: var(--auth-green) !important;
    border-color: #b9d7cc;
    background: #f2faf7;
    transform: translateY(-1px);
}

.auth-mobile-header { display: none; }
.auth-heading { margin-bottom: 34px; }
.auth-eyebrow {
    display: block;
    margin-bottom: 11px;
    color: var(--auth-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
}
.auth-heading h1 {
    margin: 0 0 10px;
    color: var(--auth-ink);
    font-family: Poppins, Cairo, sans-serif;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -1.2px;
    line-height: 1.2;
}
html[dir="rtl"] .auth-heading h1 { letter-spacing: -.5px; }
.auth-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.8;
}

.auth-form { display: grid; gap: 19px; }
.auth-field label {
    display: block;
    margin: 0 0 8px;
    color: #29463d;
    font-size: 13px;
    font-weight: 600;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap > i {
    position: absolute;
    inset-inline-start: 17px;
    top: 50%;
    z-index: 1;
    color: #8da099;
    font-size: 20px;
    transform: translateY(-50%);
    transition: color .2s ease;
}
.auth-input-wrap input {
    width: 100% !important;
    height: 54px;
    padding: 0 48px !important;
    color: var(--auth-ink);
    border: 1px solid var(--auth-border) !important;
    border-radius: 13px !important;
    outline: 0;
    background: #fbfdfc;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-input-wrap input::placeholder { color: #a5b2ad !important; }
.auth-input-wrap input:focus {
    border-color: var(--auth-green) !important;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8,112,82,.1);
}
.auth-input-wrap:focus-within > i { color: var(--auth-green); }
.auth-password-toggle {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #82958e;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}
.auth-password-toggle:hover, .auth-password-toggle:focus {
    color: var(--auth-green);
    background: #edf8f4;
    outline: 0;
}
.auth-password-toggle i { font-size: 19px; }

.auth-remember {
    width: fit-content;
    margin: 1px 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--auth-muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.auth-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.auth-checkbox {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: transparent;
    border: 1.5px solid #bdcbc6;
    border-radius: 6px;
    transition: .2s ease;
}
.auth-checkbox i { font-size: 14px; }
.auth-remember input:checked + .auth-checkbox {
    color: #fff;
    border-color: var(--auth-green);
    background: var(--auth-green);
}
.auth-remember input:focus-visible + .auth-checkbox { box-shadow: 0 0 0 4px rgba(8,112,82,.12); }

.auth-submit {
    position: relative;
    height: 55px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    color: #fff;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #0a7e5c, #05513e);
    box-shadow: 0 13px 28px rgba(8,112,82,.24);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.auth-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.16) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(8,112,82,.3); }
.auth-submit:hover::before { transform: translateX(120%); }
.auth-submit i { font-size: 19px; transition: transform .2s ease; }
html[dir="ltr"] .auth-submit i { transform: rotate(180deg); }
.auth-submit.is-loading span, .auth-submit.is-loading i { opacity: 0; }
.auth-submit.is-loading::after {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    border: 2px solid rgba(255,255,255,.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-customer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #72847e;
    font-size: 12px;
    font-weight: 500;
}
.auth-customer-link:hover { color: var(--auth-green) !important; }
.auth-customer-link i { font-size: 17px; }
.auth-validation {
    display: block;
    margin-top: 5px;
    color: #c83e4d !important;
    font-size: 11px;
}
.auth-validation:empty { display: none; }
.auth-alert {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a62f3b;
    border: 1px solid #f4c8cd;
    border-radius: 11px;
    background: #fff4f5;
    font-size: 12px;
}
.auth-alert i { font-size: 18px; }

.auth-footer {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #9aaba5;
    font-size: 10px;
}
.auth-status { display: flex; align-items: center; gap: 6px; }
.auth-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #18a572;
    box-shadow: 0 0 0 3px rgba(24,165,114,.12);
}

.auth-showcase {
    position: relative;
    isolation: isolate;
    padding: 42px 52px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #087052 0%, #054f3c 43%, #032d24 100%);
}
.auth-showcase-grid {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.auth-showcase::after {
    content: ";";
    position: absolute;
    z-index: -1;
    inset-inline-end: -22px;
    bottom: -130px;
    color: rgba(255,255,255,.045);
    font: 700 520px/1 Poppins, sans-serif;
}
.auth-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(1px);
}
.auth-orb-one {
    width: 360px;
    height: 360px;
    inset-inline-end: -150px;
    top: 70px;
    background: rgba(217,164,65,.16);
    box-shadow: 0 0 100px rgba(217,164,65,.12);
}
.auth-orb-two {
    width: 220px;
    height: 220px;
    inset-inline-start: -130px;
    bottom: 40px;
    background: rgba(31,178,133,.2);
}
.auth-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.auth-showcase-header img {
    width: 182px;
    padding: 8px 13px;
    border-radius: 13px;
    background: rgba(255,255,255,.95);
}
.auth-showcase-header span {
    color: rgba(255,255,255,.55);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}
.auth-showcase-content {
    max-width: 540px;
    margin: auto 0;
    padding: 60px 0;
}
.auth-showcase-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7eae3;
    font-size: 12px;
    font-weight: 600;
}
.auth-showcase-kicker i { width: 26px; height: 1px; background: var(--auth-gold); }
.auth-showcase h2 {
    max-width: 520px;
    margin: 20px 0 22px;
    color: #fff;
    font-family: Poppins, Cairo, sans-serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 1.15;
}
html[dir="rtl"] .auth-showcase h2 { letter-spacing: -1px; line-height: 1.35; }
.auth-showcase-content > p {
    max-width: 500px;
    margin: 0;
    color: rgba(236,248,244,.72);
    font-size: 14px;
    line-height: 1.9;
}
.auth-feature-row {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.auth-feature-row div {
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,.86);
    font-size: 11px;
}
.auth-feature-row i { color: #e9c779; font-size: 17px; }
.auth-proof {
    padding: 15px 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
}
.auth-proof-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    color: #133d31;
    border-radius: 11px;
    background: #e2bc64;
}
.auth-proof-icon i { font-size: 20px; }
.auth-proof div:last-child { display: flex; flex-direction: column; gap: 3px; }
.auth-proof strong { color: #fff; font-size: 11px; font-weight: 600; }
.auth-proof span { color: rgba(255,255,255,.58); font-size: 9px; }

@media (max-width: 960px) {
    .auth-shell { padding: 18px; }
    .auth-card {
        min-height: calc(100vh - 36px);
        grid-template-columns: minmax(360px, .95fr) minmax(390px, 1.05fr);
    }
    .auth-form-panel { padding-inline: 34px; }
    .auth-showcase { padding: 34px; }
}

@media (max-width: 760px) {
    .login-one { background: #f3f8f6; }
    .auth-shell { padding: 0; display: block; }
    .auth-card {
        min-height: 100vh;
        display: block;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .auth-showcase { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 26px clamp(22px, 7vw, 46px); }
    .auth-mobile-header { display: block; margin-bottom: 34px; }
    .auth-mobile-header img { width: 185px; }
    .auth-form-wrap { margin: auto; }
    .auth-form-topbar { margin-bottom: 42px; }
    .auth-heading h1 { font-size: 33px; }
    .auth-footer { margin-top: 45px; }
}

@media (max-width: 420px) {
    .auth-form-panel { padding-inline: 20px; }
    .auth-mobile-header img { width: 160px; }
    .auth-form-topbar { margin-bottom: 34px; }
    .auth-secure-label { display: none; }
    .auth-form-topbar { justify-content: flex-end; }
    .auth-footer { justify-content: center; text-align: center; }
    .auth-status { display: none; }
}

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

/* Workspace / scope selection */
.scope-shell {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}
.scope-card {
    width: min(650px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(26,62,51,.14);
}
.scope-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e7efeb;
}
.scope-brand img { width: 174px; }
.scope-header form { margin: 0; }
.scope-logout {
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b33743;
    border: 1px solid #f0d5d8;
    border-radius: 10px;
    background: #fff8f8;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}
.scope-logout:hover {
    color: #fff;
    border-color: #b33743;
    background: #b33743;
}
.scope-logout i { font-size: 17px; }
.scope-intro {
    padding: 34px 34px 25px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.scope-icon {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: grid;
    place-items: center;
    color: var(--auth-green);
    border-radius: 14px;
    background: #eaf7f2;
}
.scope-icon i { font-size: 25px; }
.scope-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--auth-green);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}
.scope-intro h1 {
    margin: 0 0 7px;
    color: var(--auth-ink);
    font-family: inherit;
    font-size: 25px;
    font-weight: 700;
}
.scope-intro p { margin: 0; color: var(--auth-muted); font-size: 13px; }
.scope-list {
    max-height: min(430px, 52vh);
    padding: 4px 34px 30px;
    display: grid;
    gap: 10px;
    overflow-y: auto;
}
.scope-list form { margin: 0; }
.scope-option {
    width: 100%;
    min-height: 72px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: start;
    color: var(--auth-ink);
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: #fbfdfc;
    font-family: inherit;
    cursor: pointer;
    transition: .2s ease;
}
.scope-option:hover, .scope-option:focus {
    border-color: #9fcabd;
    outline: 0;
    background: #f2faf7;
    box-shadow: 0 8px 22px rgba(8,112,82,.09);
    transform: translateY(-1px);
}
.scope-option-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: var(--auth-green);
    border-radius: 11px;
    background: #e5f4ee;
}
.scope-option-icon i { font-size: 21px; }
.scope-option-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.scope-option-copy strong {
    overflow: hidden;
    color: #203e35;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scope-option-copy small {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7e918a;
    font-size: 11px;
}
.scope-default {
    padding: 4px 8px;
    color: #8a640f;
    border-radius: 20px;
    background: #fff3d7;
    font-size: 9px;
    font-weight: 700;
}
.scope-arrow {
    color: #8da099;
    font-size: 18px;
    transition: .2s ease;
}
html[dir="ltr"] .scope-arrow { transform: rotate(180deg); }
.scope-option:hover .scope-arrow { color: var(--auth-green); }
.scope-footer {
    padding: 15px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8da099;
    border-top: 1px solid #edf2f0;
    background: #fbfdfc;
    font-size: 10px;
}
.scope-footer i { color: var(--auth-green); font-size: 15px; }

@media (max-width: 560px) {
    .scope-shell { padding: 0; display: block; background: #fff; }
    .scope-card { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .scope-header { padding: 22px 20px; }
    .scope-brand img { width: 150px; }
    .scope-intro { padding: 30px 20px 24px; }
    .scope-list { max-height: none; padding: 3px 20px 28px; }
    .scope-logout span { display: none; }
    .scope-logout { width: 39px; height: 39px; padding: 0; justify-content: center; }
}

/* Login — restrained editorial direction */
.login-one {
    background: #f3f5f1;
    background-image:
        radial-gradient(circle at 18% 20%, rgba(8,112,82,.09), transparent 24rem),
        radial-gradient(circle at 86% 82%, rgba(217,164,65,.07), transparent 22rem),
        linear-gradient(rgba(7,63,50,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7,63,50,.025) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}
.auth-shell {
    position: relative;
    isolation: isolate;
    padding: clamp(20px, 4vw, 64px);
    overflow: hidden;
}
.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(8,112,82,.075);
    border-radius: 50%;
    pointer-events: none;
}
.auth-shell::before {
    width: 520px;
    height: 520px;
    inset-inline-start: -300px;
    top: -290px;
    box-shadow: 0 0 0 70px rgba(8,112,82,.018);
}
.auth-shell::after {
    width: 430px;
    height: 430px;
    inset-inline-end: -250px;
    bottom: -280px;
    border-color: rgba(217,164,65,.09);
    box-shadow: 0 0 0 65px rgba(217,164,65,.015);
}
.auth-card {
    width: min(1100px, 100%);
    min-height: min(680px, calc(100vh - 80px));
    grid-template-columns: 1fr 1fr;
    border: 0;
    border-radius: 20px;
    box-shadow:
        0 32px 80px rgba(28,43,37,.12),
        0 2px 8px rgba(28,43,37,.04);
}
.auth-form-panel {
    order: 2;
    padding: clamp(40px, 5vw, 72px);
    justify-content: center;
}
.auth-form-wrap {
    max-width: 392px;
    margin: 0 auto;
}
.auth-form-topbar {
    margin-bottom: clamp(58px, 8vh, 82px);
}
.auth-form-logo { width: 174px; height: auto; }
.auth-language {
    padding: 0 0 3px;
    color: #63736d;
    border: 0;
    border-bottom: 1px solid #bdc8c4;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
}
.auth-language:hover {
    color: var(--auth-green) !important;
    border-color: var(--auth-green);
    background: transparent;
    transform: none;
}
.auth-heading { margin-bottom: 36px; }
.auth-heading h1 {
    margin-bottom: 10px;
    font-size: clamp(34px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: -.9px;
    line-height: 1.35;
}
.auth-heading p {
    color: #71817b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}
.auth-form { gap: 20px; }
.auth-field label {
    margin-bottom: 10px;
    color: #2d463d;
    font-size: 13px;
    font-weight: 600;
}
.auth-input-wrap input {
    height: 54px;
    border-color: #dfe5e2 !important;
    border-radius: 10px !important;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
}
.auth-input-wrap input:focus {
    border-color: #5b9b84 !important;
    box-shadow: 0 0 0 3px rgba(8,112,82,.07);
}
.auth-input-wrap > i { color: #9aa6a1; font-size: 18px; }
.auth-remember {
    color: #64766f;
    font-size: 13px;
    font-weight: 500;
}
.auth-checkbox { width: 18px; height: 18px; border-radius: 5px; }
.auth-submit {
    height: 54px;
    border-radius: 10px;
    background: #087052;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
}
.auth-submit::before { display: none; }
.auth-submit:hover {
    background: #065e46;
    box-shadow: none;
    transform: translateY(-1px);
}
.auth-customer-link {
    margin-top: 3px;
    color: #71817b;
    font-size: 12px;
    font-weight: 500;
}
.auth-showcase {
    order: 1;
    padding: clamp(48px, 6vw, 76px);
    background: #073f32;
}
.auth-showcase::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 430px;
    height: 430px;
    inset-inline-start: -270px;
    top: -230px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255,255,255,.018),
        0 0 0 140px rgba(255,255,255,.012);
}
.auth-showcase::after { display: none; }
.auth-showcase-content {
    max-width: 420px;
    margin: 10px 0 0;
    padding: 0;
}
.auth-showcase-kicker {
    display: block;
    margin-bottom: 30px;
    color: #d6ad54;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
}
.auth-showcase h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -2.6px;
    line-height: 1.13;
}
html[dir="rtl"] .auth-showcase h2 {
    letter-spacing: -.8px;
    line-height: 1.38;
}
.auth-erp-visual {
    position: relative;
    z-index: 1;
    width: calc(100% + 44px);
    margin: 38px -22px auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: #073f32;
    box-shadow: 0 22px 48px rgba(0,0,0,.2);
}
.auth-erp-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
    pointer-events: none;
}
.auth-erp-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.auth-signature {
    position: absolute;
    inset-inline-end: 55px;
    bottom: 30px;
    color: rgba(217,164,65,.14);
    font: 600 190px/1 Poppins, sans-serif;
}
.auth-showcase-foot {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.35);
    font-size: 10px;
    letter-spacing: .5px;
}

html[dir="rtl"] .auth-form-panel,
html[dir="rtl"] .auth-showcase {
    font-family: Cairo, Poppins, sans-serif;
}

.auth-card--login {
    width: min(520px, 100%);
    min-height: auto;
    display: block;
}
.auth-card--login .auth-form-panel {
    min-height: min(680px, calc(100vh - 80px));
    padding: clamp(38px, 5vw, 58px);
}
.auth-card--login .auth-form-wrap {
    max-width: 400px;
    margin: auto;
}
.auth-card--login .auth-form-topbar {
    margin-bottom: clamp(44px, 7vh, 66px);
}
.auth-login-meta {
    margin-top: 30px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 12px;
    color: #87958f;
    border-top: 1px solid #edf1ef;
    font-size: 10px;
    line-height: 1.5;
}
.auth-revision {
    display: grid;
    gap: 6px;
    width: 100%;
    color: #51665e;
    font-size: 11px;
}
.auth-revision > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.auth-revision time {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}
.auth-version {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: #51665e;
    border: 1px solid #dfe8e4;
    border-radius: 999px;
    background: #f5f8f7;
    font-family: Poppins, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .25px;
}

@media (max-width: 760px) {
    .auth-shell { padding: 0; }
    .auth-card { min-height: 100vh; border-radius: 0; }
    .auth-form-panel { padding: 30px clamp(24px, 8vw, 48px); }
    .auth-form-topbar { margin-bottom: 70px; }
    .auth-form-logo { width: 150px; }
}

@media (max-width: 760px) {
    .auth-shell--login {
        padding: 18px;
        display: grid;
    }
    .auth-card--login {
        min-height: auto;
        border: 1px solid rgba(255,255,255,.9);
        border-radius: 20px;
        box-shadow: 0 24px 60px rgba(28,43,37,.11);
    }
    .auth-card--login .auth-form-panel {
        min-height: auto;
        padding: 30px clamp(22px, 7vw, 38px);
    }
    .auth-card--login .auth-form-topbar { margin-bottom: 48px; }
}

@media (max-width: 420px) {
    .auth-card--login .auth-form-topbar { justify-content: space-between; }
    .auth-login-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-height: 720px) and (min-width: 761px) {
    .auth-shell { padding: 24px; }
    .auth-card { min-height: calc(100vh - 48px); }
    .auth-form-topbar { margin-bottom: 45px; }
    .auth-heading { margin-bottom: 28px; }
    .auth-form { gap: 15px; }
    .auth-erp-visual { margin-top: 24px; }
    .auth-showcase h2 { font-size: 38px; }
}

/* Contract-country cinema. The form is always independent of animation loading. */
.auth-card--login { display: grid; width: min(1200px, 100%); grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr); }
.auth-card--login .auth-form-panel { order: 0; min-height: 690px; padding: 44px clamp(28px, 4vw, 54px); }
.auth-card--login .auth-form-topbar { margin-bottom: 36px; }
.auth-login-title { color: var(--auth-ink); font: 700 27px/1.5 Cairo, Poppins, sans-serif; margin: 0 0 26px; }
.auth-cinema { position: relative; isolation: isolate; min-width: 0; overflow: hidden; background: #061e1d; color: #eff9f4; }
.auth-cinema-atmosphere { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 42%, #16483e 0, transparent 65%), linear-gradient(140deg, #092d29, #041414); }
.auth-cinema-atmosphere::after { content: ''; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(#6cbda51a 1px, transparent 1px), linear-gradient(90deg, #6cbda51a 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(transparent, #000 75%); }
.auth-cinema-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.auth-cinema-fallback { position: absolute; width: 52%; top: 14%; left: 24%; padding: 14px; border-radius: 12px; background: #fff; }
.auth-cinema.is-ready .auth-cinema-fallback { display: none; }
.auth-cinema-top { position: absolute; top: 28px; inset-inline: 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-cinema-country { color: #d9bc79; font-size: 12px; }
.auth-cinema-pause { border: 1px solid #ffffff40; border-radius: 20px; color: #e1eee9; padding: 7px 12px; background: #052522b3; font: inherit; font-size: 11px; cursor: pointer; }
.auth-cinema-pause:focus-visible { outline: 2px solid #edcd88; outline-offset: 4px; }
.auth-cinema-caption { position: absolute; bottom: 34px; inset-inline: 34px; text-align: start; }
.auth-cinema-name { margin: 8px 0 0; color: #eff9f4; font: 600 24px/1.5 Cairo, Poppins, sans-serif; }
.auth-cinema-reveal { display: none; }
@media (max-width: 900px) {
    .auth-card--login { grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr); }
    .auth-cinema-top { inset-inline: 20px; }
    .auth-cinema-name { font-size: 21px; }
}
@media (max-width: 760px) {
    .auth-card--login { display: flex; flex-direction: column; width: min(520px, 100%); }
    .auth-card--login .auth-form-panel { min-height: auto; padding: 28px clamp(22px, 7vw, 38px); }
    .auth-card--login .auth-form-topbar { margin-bottom: 25px; }
    .auth-cinema-reveal:not([hidden]) { display: flex; order: -2; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-bottom: 1px solid #e7eeea; background: #f6faf7; color: #346b54; font: 600 12px/1.6 Cairo, Poppins, sans-serif; cursor: pointer; }
    .auth-cinema-reveal:focus-visible { outline: 2px solid #346b54; outline-offset: -4px; }
    .is-cinema-expanded .auth-cinema-reveal svg { transform: rotate(180deg); }
    .auth-cinema { display: none; min-height: 355px; order: -1; }
    .is-cinema-expanded .auth-cinema { display: block; }
    .auth-cinema-canvas { height: 420px; top: -40px; }
    .auth-cinema-caption { bottom: 16px; inset-inline: 24px; }
    .auth-cinema-name { font-size: 18px; margin: 4px 0 0; }
    .auth-cinema-top { top: 15px; }
    .auth-cinema-country { font-size: 11px; }
    .auth-cinema-fallback { top: 14%; width: 44%; left: 28%; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-shell--login *, .auth-shell--login *::before, .auth-shell--login *::after { animation: none !important; transition: none !important; }
}
