:root {
    --navy: #09275f;
    --navy-deep: #061d4b;
    --blue: #0f4da0;
    --red: #e31b23;
    --ink: #0d2557;
    --muted: #5f6f90;
    --line: #d5dfec;
    --surface: rgba(255, 255, 255, .91);
    --shadow: 0 24px 70px rgba(6, 29, 75, .24);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
button, input { font: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.auth-page {
    min-height: 100vh;
    background: #dceeff;
}

.auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(410px, 36%);
    min-height: 100vh;
    direction: ltr;
    overflow: hidden;
    isolation: isolate;
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    padding: clamp(38px, 5vw, 86px) clamp(34px, 6vw, 104px) 124px;
    background: url("../images/login-ocean.jpg") center/cover no-repeat;
    direction: rtl;
    overflow: hidden;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08) 45%, rgba(12, 53, 112, .07)),
        linear-gradient(180deg, rgba(255, 247, 238, .32), rgba(255, 255, 255, .04) 48%, rgba(5, 31, 76, .2));
    pointer-events: none;
}

.brand-lockup,
.visual-copy,
.feature-strip {
    position: relative;
    z-index: 2;
}

.brand-lockup {
    width: min(560px, 64vw);
}

.brand-lockup img {
    width: min(520px, 100%);
    height: auto;
    filter: drop-shadow(0 6px 7px rgba(6, 29, 75, .22));
}

.visual-copy {
    max-width: 630px;
    margin-top: clamp(28px, 6vh, 68px);
    text-align: right;
}

.visual-copy h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: 0;
}

.title-mark {
    display: block;
    width: 68px;
    height: 5px;
    margin: 22px 0 28px auto;
    border-radius: 999px;
    background: var(--red);
}

.visual-copy p {
    max-width: 475px;
    margin: 0;
    color: #1f3767;
    font-size: 20px;
    line-height: 1.8;
    font-weight: 500;
}

.feature-strip {
    position: absolute;
    left: clamp(34px, 6vw, 104px);
    right: clamp(34px, 6vw, 104px);
    bottom: 42px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 760px;
    padding: 22px 26px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 18px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 18px 45px rgba(8, 45, 99, .16);
    backdrop-filter: blur(12px);
}

.feature-item {
    display: grid;
    place-items: center;
    gap: 7px;
    min-width: 0;
    padding: 0 14px;
    text-align: center;
    color: var(--navy);
    border-left: 1px solid rgba(10, 40, 88, .15);
}

.feature-item:first-child { border-left: 0; }
.feature-item svg { width: 42px; height: 42px; color: var(--red); stroke-width: 1.7; }
.feature-item strong { font-size: 17px; line-height: 1.3; }
.feature-item span { color: #243c6b; font-size: 13px; line-height: 1.45; }

.auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 44px 34px 102px;
    direction: rtl;
}

.login-card {
    position: relative;
    width: min(520px, 100%);
    min-height: 690px;
    padding: 34px 42px 42px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 19px;
    font-weight: 800;
}

.language-switch svg:first-child { width: 25px; height: 25px; }
.language-switch svg:last-child { width: 19px; height: 19px; }
.mobile-brand { display: none; }

.card-heading {
    margin: 62px 0 36px;
    text-align: center;
}

.card-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 39px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.card-heading .title-mark {
    margin: 18px auto 26px;
}

.card-heading p {
    margin: 0;
    color: #243b69;
    font-size: 16px;
    line-height: 1.8;
}

.login-form {
    display: grid;
    gap: 24px;
}

.field {
    display: grid;
    gap: 12px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.input-wrap {
    position: relative;
    display: block;
}

.input-wrap > svg {
    position: absolute;
    right: 18px;
    top: 50%;
    z-index: 2;
    width: 25px;
    height: 25px;
    transform: translateY(-50%);
    color: var(--navy);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 70px;
    border: 1px solid #cfd8e7;
    border-radius: 10px;
    background: rgba(255, 255, 255, .82);
    color: var(--ink);
    padding: 0 62px 0 58px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(6, 29, 75, .04);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.input-wrap input::placeholder {
    color: #9aa7be;
    font-weight: 500;
}

.input-wrap input:focus {
    border-color: #6f9dda;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 77, 160, .12);
}

.password-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
}

.password-toggle:hover {
    background: rgba(9, 39, 95, .08);
}

.password-toggle svg {
    width: 24px;
    height: 24px;
}

.password-toggle.is-visible svg path:last-child {
    display: none;
}

.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: -6px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.remember input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--blue);
}

.help-note {
    color: #0b62c6;
    font-size: 15px;
    font-weight: 800;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 70px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #0b3c8d, #072a70);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(7, 42, 112, .28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.submit-button svg {
    width: 27px;
    height: 27px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(7, 42, 112, .34);
}

.submit-button:active { transform: none; }
.submit-button:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
    box-shadow: none;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.alert--error {
    border: 1px solid #f1c7cd;
    background: #fff1f3;
    color: #b32235;
}

.alert--success {
    border: 1px solid #c7ead9;
    background: #eaf8f2;
    color: #11724d;
}

.alert--warning {
    border: 1px solid #ecd7a6;
    background: #fff7e5;
    color: #835d08;
}

.setup-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #dee7f2;
    border-radius: 10px;
    background: rgba(242, 246, 252, .86);
    color: #647490;
    font-size: 12px;
}

.setup-box a {
    color: var(--navy);
    font-weight: 900;
    text-decoration: none;
}

.auth-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 16px clamp(28px, 5vw, 78px);
    background: rgba(255, 255, 255, .72);
    color: var(--navy);
    direction: rtl;
    backdrop-filter: blur(14px);
}

.auth-footer div {
    display: flex;
    align-items: center;
    gap: 24px;
}

.auth-footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.auth-footer a + a {
    padding-right: 24px;
    border-right: 1px solid rgba(9, 39, 95, .17);
}

.auth-footer svg {
    width: 22px;
    height: 22px;
}

.auth-footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
}

.setup-page {
    background: radial-gradient(circle at 10% 10%, #d9efff, transparent 35%), linear-gradient(145deg, #edf5fb, #fff);
}

.setup-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 42px 24px;
}

.setup-brand {
    position: absolute;
    top: 26px;
    left: 30px;
}

.setup-brand img { width: 180px; }

.setup-card {
    width: min(760px, 100%);
    margin-top: 50px;
    padding: 34px;
    border: 1px solid #dce5ef;
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.setup-heading {
    margin-bottom: 28px;
    text-align: center;
}

.step-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #164f99;
    font-size: 12px;
    font-weight: 900;
}

.setup-heading h1 {
    margin: 12px 0 8px;
    font-size: 32px;
}

.setup-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.setup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.field--wide { grid-column: 1 / -1; }

.password-rules {
    padding: 12px 14px;
    border: 1px solid #e1e8f1;
    border-radius: 11px;
    background: #f5f8fc;
    color: #667792;
    font-size: 12px;
}

@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 42%);
    }

    .feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 590px;
    }

    .feature-item:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        display: block;
        min-height: 100vh;
        background: url("../images/login-ocean.jpg") center/cover no-repeat;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: calc(100vh - 92px);
        padding: 26px 18px 116px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(221, 237, 255, .6));
    }

    .login-card {
        min-height: 0;
        padding: 28px 22px 30px;
        background: rgba(255, 255, 255, .9);
    }

    .mobile-brand {
        display: block;
        margin: 26px auto 8px;
        text-align: center;
    }

    .mobile-brand img {
        width: min(300px, 86%);
    }

    .card-heading {
        margin: 28px 0 28px;
    }

    .card-heading h2 {
        font-size: 34px;
    }

    .auth-footer {
        flex-direction: column;
        justify-content: center;
        min-height: 92px;
        padding: 14px 18px;
        text-align: center;
    }

    .auth-footer div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }

    .auth-footer a + a {
        padding-right: 0;
        border-right: 0;
    }
}

@media (max-width: 520px) {
    .language-switch {
        font-size: 16px;
    }

    .input-wrap input,
    .submit-button {
        height: 60px;
    }

    .submit-button {
        font-size: 18px;
    }

    .form-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .setup-brand {
        position: static;
        margin-bottom: 14px;
    }

    .setup-shell {
        display: flex;
        flex-direction: column;
    }

    .setup-card {
        margin-top: 0;
        padding: 24px 18px;
    }

    .setup-form {
        grid-template-columns: 1fr;
    }

    .field--wide {
        grid-column: auto;
    }
}

.input-wrap {
    --field-icon-size: 22px;
    border-radius: 12px;
}

.input-wrap > svg,
.password-toggle {
    top: 50%;
    transform: translateY(-50%);
}

.input-wrap > svg {
    right: 19px;
    width: var(--field-icon-size);
    height: var(--field-icon-size);
    color: #102a68;
    transition: transform 220ms ease, color 220ms ease, opacity 220ms ease;
}

.input-wrap input {
    border-radius: 10px;
    padding-right: 58px;
    padding-left: 58px;
    transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease, transform 220ms ease;
}

.input-wrap:hover input {
    border-color: #b8c9e3;
    background: rgba(255, 255, 255, .96);
}

.input-wrap:hover > svg {
    transform: translateY(-50%) scale(1.06);
}

.input-wrap:focus-within input {
    border-color: #2f6fcd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 111, 205, .13), 0 10px 24px rgba(7, 42, 112, .08);
    transform: translateY(-1px);
}

.input-wrap:focus-within > svg {
    color: #0f4da0;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle {
    left: 12px;
    width: 38px;
    height: 38px;
    color: #102a68;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.password-toggle:hover {
    color: #0f4da0;
    background: rgba(15, 77, 160, .09);
    box-shadow: 0 6px 16px rgba(15, 77, 160, .12);
    transform: translateY(-50%) scale(1.06);
}

.password-toggle:active {
    transform: translateY(-50%) scale(.96);
}

.password-toggle svg {
    width: 21px;
    height: 21px;
    transition: transform 260ms ease, opacity 220ms ease;
}

.password-toggle.is-visible {
    color: #e31b23;
}

.password-toggle.is-visible svg {
    transform: rotate(-8deg) scale(1.08);
}

.password-toggle.is-visible svg path:last-child {
    opacity: 0;
}

.field:focus-within > span:first-child {
    color: #0f4da0;
}

.submit-button {
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.submit-button svg {
    transition: transform 220ms ease;
}

.submit-button:hover svg {
    transform: translateX(-4px);
}

@media (prefers-reduced-motion: no-preference) {
    .input-wrap:focus-within {
        animation: fieldLift 260ms ease both;
    }

    .password-toggle.is-visible {
        animation: eyePop 280ms ease both;
    }
}

@keyframes fieldLift {
    0% { transform: translateY(0); }
    55% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

@keyframes eyePop {
    0% { transform: translateY(-50%) scale(.92); }
    65% { transform: translateY(-50%) scale(1.12); }
    100% { transform: translateY(-50%) scale(1); }
}

.feature-item .feature-icon {
    color: var(--red);
    overflow: visible;
}

.feature-item .feature-red {
    stroke: #ef2b2d;
}

.feature-item .feature-navy {
    stroke: #102a68;
}

.feature-item .feature-icon path {
    vector-effect: non-scaling-stroke;
}

.feature-strip {
    direction: ltr;
}

.feature-item {
    direction: rtl;
}

.feature-item .feature-icon {
    width: 38px;
    height: 38px;
    stroke-width: 2.05;
}

/* ============================================================
   LOGIN V3 — full-bleed hero with floating glass login card
   Fluid, clamp()-based layout: no breakpoint pile-ups.
   ============================================================ */

.login-v3-page {
    min-height: 100vh;
    overflow: hidden;
    background: #dbeeff;
}

.login-v3-shell {
    position: relative;
    min-height: 100vh;
}

.login-v3-visual {
    background-image: url("../images/login-ocean.jpg");
    background-position: center center;
    background-size: cover;
}

.login-v3-visual .visual-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .40) 0%, rgba(255, 255, 255, .14) 40%, rgba(213, 232, 252, .06) 65%, rgba(213, 232, 252, .26) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .01) 55%, rgba(7, 26, 70, .18) 100%);
}

/* readability wash behind the Arabic hero copy */
.login-v3-visual::before {
    content: "";
    display: none;
    position: absolute;
    z-index: 1;
    border-radius: 40px;
    background: radial-gradient(ellipse at 60% 45%, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, 0) 78%);
    filter: blur(4px);
    pointer-events: none;
}

.login-v3-brand img {
    filter: drop-shadow(0 5px 8px rgba(255, 255, 255, .45));
}

.login-v3-copy h1 {
    color: #07194d;
    font-weight: 950;
    text-wrap: balance;
}

.login-v3-copy .title-mark {
    background: #df1f26;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .32);
}

.login-v3-copy p {
    display: inline-block;
    border-radius: 10px;
    color: #0a1c47;
    font-weight: 800;
}

.login-v3-features {
    max-width: none;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(13, 43, 96, .68);
    box-shadow: 0 22px 46px rgba(7, 24, 64, .22);
    backdrop-filter: blur(14px);
    direction: rtl;
}

.login-v3-features .feature-item {
    color: #fff;
    border-left-color: rgba(255, 255, 255, .22);
}

.login-v3-features .feature-item strong {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.login-v3-features .feature-item span {
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

.login-v3-features .feature-icon,
.login-v3-features .feature-item svg {
    width: 38px;
    height: 38px;
}

.login-v3-features .feature-red,
.login-v3-features .feature-navy {
    stroke: #fff;
}

.login-v3-card {
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 24px 60px rgba(7, 30, 82, .20);
    backdrop-filter: blur(18px);
}

.login-v3-card .language-switch {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    color: #0b255f;
    font-size: 17px;
    font-weight: 900;
}

.login-v3-card .language-switch svg:first-child {
    order: -1;
    width: 23px;
    height: 23px;
}

.login-v3-card .card-heading h2 {
    color: #0b255f;
    font-weight: 950;
}

.login-v3-card .card-heading .title-mark {
    background: #df1f26;
}

.login-v3-card .card-heading p {
    color: #253c6b;
    font-size: 15px;
    font-weight: 650;
}

.login-v3-card .field {
    gap: 12px;
    color: #0b255f;
    font-size: 14px;
    font-weight: 950;
}

.login-v3-card .input-wrap input {
    border: 1px solid #cfd9e9;
    background: rgba(255, 255, 255, .72);
    color: #0b255f;
    font-weight: 650;
    box-shadow: 0 8px 18px rgba(8, 34, 91, .045), inset 0 1px 2px rgba(8, 34, 91, .04);
}

.login-v3-card .input-wrap input::placeholder {
    color: #8e9bb4;
    font-weight: 650;
}

.login-v3-card .input-wrap > svg {
    color: #0b255f;
}

.login-v3-card .password-toggle {
    color: #0b255f;
}

.login-v3-card .form-meta {
    color: #0b255f;
}

.login-v3-card .remember {
    flex-direction: row-reverse;
    color: #0b255f;
    font-size: 15px;
    font-weight: 750;
}

.login-v3-card .remember input {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.login-v3-card .help-note {
    color: #0b255f;
    font-size: 14px;
    font-weight: 850;
}

.login-v3-card .submit-button {
    background: linear-gradient(180deg, #0c2c70 0%, #071d55 100%);
    font-weight: 950;
    box-shadow: 0 18px 32px rgba(7, 29, 85, .28);
}

.login-v3-card .submit-button svg {
    order: 2;
}

.login-v3-card .alert--success {
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    border-color: #b9dfc7;
    background: rgba(232, 248, 238, .92);
    color: #236c3b;
    font-size: 15px;
    font-weight: 650;
}

.login-v3-card .alert--success svg {
    width: 25px;
    height: 25px;
    color: #2e934e;
}

.login-v3-card .alert--success button {
    border: 0;
    background: transparent;
    color: #236c3b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.login-v3-footer {
    display: none;
}

/* ---------- mobile / tablet (<= 900px): stacked, hero as backdrop ---------- */
@media (max-width: 900px) {
    .login-v3-page {
        overflow: auto;
    }

    .login-v3-shell {
        background: url("../images/login-ocean.jpg") center/cover no-repeat fixed;
    }

    .login-v3-visual {
        display: none;
    }

    .login-v3-panel {
        min-height: 100vh;
        padding: 24px 18px 32px;
        background: linear-gradient(180deg, rgba(221, 238, 255, .28), rgba(221, 238, 255, .74));
    }

    .login-v3-card {
        padding: 26px 22px 30px;
    }

    .mobile-brand img {
        width: min(280px, 82vw);
    }
}

/* ---------- desktop (>= 901px): full-bleed hero, floating overlay card ---------- */
@media (min-width: 901px) {
    .login-v3-shell {
        overflow: hidden;
        background: url("../images/login-ocean.jpg") center center / cover no-repeat;
    }

    .login-v3-visual {
        position: absolute;
        inset: 0;
        min-height: 0;
        padding: 0;
        background: transparent;
    }

    .login-v3-visual::before {
        display: block;
        top: clamp(110px, 15vh, 190px);
        left: auto;
        right: clamp(440px, 30vw, 640px);
        width: clamp(400px, 34vw, 620px);
        height: clamp(320px, 42vh, 470px);
    }

    .login-v3-brand {
        position: absolute;
        top: clamp(46px, 7vh, 78px);
        left: clamp(24px, 3vw, 42px);
        width: clamp(200px, 17vw, 275px);
    }

    .login-v3-copy {
        position: absolute;
        top: clamp(190px, 25vh, 260px);
        left: auto;
        right: clamp(480px, 34vw, 660px);
        width: clamp(300px, 27vw, 555px);
        max-width: 555px;
        text-align: right;
    }

    .login-v3-copy h1 {
        font-size: clamp(30px, 3.1vw, 58px);
        line-height: 1.2;
        text-shadow: 0 2px 0 rgba(255, 255, 255, .5), 0 12px 30px rgba(255, 255, 255, .75);
    }

    .login-v3-copy .title-mark {
        width: 66px;
        height: 4px;
        margin: 20px 0 22px auto;
    }

    .login-v3-copy p {
        max-width: 460px;
        margin-right: auto;
        margin-left: 0;
        padding: 10px 18px;
        font-size: clamp(14px, 1vw, 18px);
        line-height: 1.68;
        background: rgba(255, 255, 255, .6);
        backdrop-filter: blur(6px);
        box-shadow: 0 8px 22px rgba(7, 25, 77, .10);
    }

    .login-v3-features {
        position: absolute;
        left: clamp(24px, 3vw, 42px);
        right: auto;
        bottom: clamp(36px, 6vh, 84px);
        width: clamp(420px, 38vw, 780px);
        padding: clamp(14px, 1.6vw, 22px) clamp(18px, 2.2vw, 28px);
    }

    .login-v3-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        right: clamp(24px, 3.5vw, 86px);
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(400px, 29vw, 500px);
        min-height: 0;
        padding: clamp(20px, 3vh, 50px) 0;
        pointer-events: none;
    }

    .login-v3-card {
        width: 100%;
        max-height: calc(100vh - 60px);
        overflow: auto;
        padding: clamp(24px, 3vw, 38px) clamp(24px, 3.2vw, 40px) clamp(28px, 3.4vw, 42px);
        border-radius: 22px;
        pointer-events: auto;
    }

    .login-v3-card .card-heading {
        margin: clamp(28px, 5vh, 62px) 0 clamp(20px, 3vh, 36px);
    }

    .login-v3-card .card-heading h2 {
        font-size: clamp(30px, 2.4vw, 44px);
    }

    .login-v3-card .card-heading .title-mark {
        width: 66px;
        height: 4px;
        margin: 16px auto 22px;
    }

    .login-v3-card .login-form {
        gap: clamp(16px, 2vh, 24px);
    }

    .login-v3-card .input-wrap input,
    .login-v3-card .submit-button {
        height: clamp(52px, 6.5vh, 70px);
    }

    .login-v3-card .submit-button {
        font-size: clamp(18px, 1.6vw, 26px);
        margin-top: 2px;
    }
}

/* narrow desktop / small laptop: hero copy would collide with the card, so trim it */
@media (min-width: 901px) and (max-width: 1220px) {
    .login-v3-copy {
        right: clamp(420px, 32vw, 480px);
        width: clamp(260px, 24vw, 380px);
    }

    .login-v3-features {
        width: clamp(360px, 34vw, 560px);
    }

    .login-v3-panel {
        width: clamp(380px, 32vw, 460px);
    }
}

/* short viewports: pull everything in so nothing gets clipped */
@media (min-width: 901px) and (max-height: 760px) {
    .login-v3-visual::before {
        top: 110px;
        height: 300px;
    }

    .login-v3-brand {
        top: 30px;
        width: clamp(180px, 15vw, 230px);
    }

    .login-v3-copy {
        top: 150px;
    }

    .login-v3-copy h1 {
        font-size: clamp(26px, 2.6vw, 42px);
    }

    .login-v3-features {
        bottom: 28px;
    }

    .login-v3-card .card-heading {
        margin: 20px 0 22px;
    }
}