* {
    box-sizing: border-box;
}

:root {
    --black: #050507;
    --black-soft: #09090d;
    --panel: rgba(17, 15, 24, 0.78);
    --panel-border: rgba(177, 121, 255, 0.18);

    --purple: #d8c79e;
    --purple-bright: #b9a47a;
    --purple-deep: #5b21b6;

    --white: #ffffff;
    --text: #f7f5fb;
    --muted: #aaa5b8;
    --muted-light: #c9c4d2;

    --input: rgba(255, 255, 255, 0.045);
    --input-border: rgba(255, 255, 255, 0.105);

    --error: #ff8f9f;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--black);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   PAGE
   ========================================================= */

.login-page {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 48px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(91, 33, 182, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(168, 85, 247, 0.10),
            transparent 30%
        ),
        #050507;
}

/* =========================================================
   AMBIENT LIGHT
   ========================================================= */

.ambient {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.ambient-one {
    width: 430px;
    height: 430px;

    top: -190px;
    right: -120px;

    background: rgba(124, 58, 237, 0.34);
}

.ambient-two {
    width: 500px;
    height: 500px;

    bottom: -270px;
    left: -220px;

    background: rgba(91, 33, 182, 0.28);
}

.ambient-three {
    width: 260px;
    height: 260px;

    top: 38%;
    left: 42%;

    background: rgba(168, 85, 247, 0.10);

    filter: blur(110px);
}

/* =========================================================
   ABSTRACT BACKGROUND FORMS
   ========================================================= */

.background-orbit {
    position: absolute;
    pointer-events: none;

    border: 1px solid rgba(168, 85, 247, 0.10);

    border-radius: 50%;

    transform: rotate(-22deg);
}

.orbit-one {
    width: 720px;
    height: 280px;

    top: 8%;
    left: -180px;

    box-shadow:
        0 0 80px rgba(139, 92, 246, 0.04),
        inset 0 0 80px rgba(139, 92, 246, 0.025);
}

.orbit-two {
    width: 680px;
    height: 240px;

    bottom: 5%;
    right: -220px;

    transform: rotate(24deg);

    box-shadow:
        0 0 100px rgba(168, 85, 247, 0.04),
        inset 0 0 80px rgba(168, 85, 247, 0.025);
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 450px;

    padding: 38px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

}

/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 46px;
}

.brand-mark {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #b9a47a,
            #806d49
        );

    color: white;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.7px;

    box-shadow:
        0 8px 30px rgba(185, 164, 122, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.brand-copy h1 {
    margin: 0;

    color: var(--white);

    font-size: 18px;
    font-weight: 750;

    letter-spacing: -0.3px;
}

.brand-copy p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 12.5px;
    font-weight: 450;
}

/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    margin-bottom: 30px;
}

.welcome-label {
    margin-bottom: 12px;

    color: #d8c79e;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.welcome h2 {
    margin: 0 0 9px;

    color: var(--white);

    font-size: 32px;
    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -1px;
}

.welcome p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   FORM
   ========================================================= */

.field {
    margin-bottom: 20px;
}

.field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

label {
    display: block;

    margin-bottom: 8px;

    color: var(--muted-light);

    font-size: 12.5px;
    font-weight: 650;
}

input {
    width: 100%;
    height: 54px;

    padding: 0 16px;

    border: 1px solid var(--input-border);
    border-radius: 13px;

    background: var(--input);

    color: var(--white);

    font-size: 14.5px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

input::placeholder {
    color: #777180;
}

input:hover {
    border-color: rgba(168, 85, 247, 0.25);
}

input:focus {
    border-color: rgba(168, 85, 247, 0.70);

    background: rgba(168, 85, 247, 0.055);

    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.10),
        0 0 28px rgba(139, 92, 246, 0.08);
}

/* =========================================================
   TEXT BUTTONS
   ========================================================= */

.text-button {
    border: 0;
    background: transparent;

    padding: 0;

    color: #b68cff;

    font-size: 12.5px;
    font-weight: 650;

    cursor: pointer;
}

.text-button:hover {
    color: #d0b1ff;
    text-decoration: underline;
}

/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.primary-button {
    width: 100%;
    height: 54px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #b9a47a,
            #b9a47a
        );

    color: white;

    font-size: 14.5px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    box-shadow:
        0 12px 30px rgba(124, 58, 237, 0.28);

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.primary-button:hover {
    filter: brightness(1.08);

    box-shadow:
        0 15px 38px rgba(139, 92, 246, 0.38);

    transform: translateY(-1px);
}

.primary-button:active {
    transform: translateY(1px);
}

.primary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    margin-top: 27px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 5px;
    flex-wrap: wrap;

    color: var(--muted);

    font-size: 12.5px;
}

.security-note {
    margin-top: 27px;
    padding-top: 19px;

    border-top: 1px solid rgba(255, 255, 255, 0.075);

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 7px;

    color: #85808f;

    font-size: 11.5px;
}

.security-icon {
    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(139, 92, 246, 0.13);

    color: #b794f6;

    font-size: 10px;
    font-weight: 800;
}

/* =========================================================
   SPINNER
   ========================================================= */

.spinner {
    width: 16px;
    height: 16px;

    border: 2px solid rgba(255, 255, 255, 0.30);
    border-top-color: white;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   PAGE FOOTER
   ========================================================= */

.page-footer {
    position: absolute;

    bottom: 18px;
    left: 0;
    right: 0;

    z-index: 2;

    text-align: center;

    color: #575360;

    font-size: 10.5px;
    letter-spacing: 0.2px;
}

.page-footer span {
    color: #7652ad;
    margin: 0 5px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .login-page {
        padding: 24px 16px 58px;
    }

    .login-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .brand {
        margin-bottom: 38px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 13px;
    }

    .welcome h2 {
        font-size: 28px;
    }

    .ambient-one {
        width: 300px;
        height: 300px;
    }

    .ambient-two {
        width: 330px;
        height: 330px;
    }

    .orbit-one {
        width: 500px;
        height: 210px;
        left: -260px;
    }

    .orbit-two {
        width: 480px;
        height: 190px;
        right: -270px;
    }
}

@media (max-height: 700px) {

    .login-page {
        padding-top: 24px;
        padding-bottom: 45px;
    }

    .brand {
        margin-bottom: 30px;
    }

    .welcome {
        margin-bottom: 23px;
    }

    .field {
        margin-bottom: 16px;
    }

    .login-footer {
        margin-top: 20px;
    }

    .security-note {
        margin-top: 20px;
    }
}

/* ========================================================
   COMMERCIAL BANK LOGO
   ======================================================== */

.brand-mark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(185, 164, 122, 0.95),
            rgba(128, 109, 73, 0.82)
        );
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 12px 35px rgba(185, 164, 122, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -3px;
    overflow: hidden;
}

.brand-mark::before {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.brand-mark span {
    position: relative;
    z-index: 1;
}

.brand-mark span:first-child {
    transform: translateX(2px);
}

.brand-mark span:last-child {
    transform: translateX(-1px);
}

.brand h1 {
    margin: 0;
}


/* ========================================================
   COMMERCIAL BANK FORM VALIDATION
   ======================================================== */

.login-error {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    box-sizing: border-box;
    margin: 16px 0 18px;
    padding: 15px 17px;
    overflow: hidden;

    border-radius: 18px;
    border: 1px solid rgba(167, 139, 250, 0.22);

    background:
        linear-gradient(
            135deg,
            rgba(72, 25, 104, 0.42),
            rgba(20, 13, 31, 0.82)
        );

    color: rgba(255, 245, 255, 0.94);

    font-size: 13px;
    line-height: 1.5;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    opacity: 0;
    transform: translateY(-7px) scale(0.98);

    transition:
        opacity 220ms ease,
        transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-error::before {
    content: "";
    position: absolute;
    top: -35px;
    left: -20px;
    width: 110px;
    height: 110px;
    border-radius: 50%;

    background: rgba(185, 164, 122, 0.14);

    filter: blur(28px);
    pointer-events: none;
}

.login-error::after {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(192, 132, 252, 0.95),
            rgba(248, 113, 113, 0.85)
        );

    box-shadow:
        0 0 14px rgba(168, 85, 247, 0.45);
}

.login-error.error-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.error-icon {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(168, 85, 247, 0.25),
            rgba(248, 113, 113, 0.14)
        );

    border: 1px solid rgba(216, 180, 254, 0.20);

    color: #d8c79e;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.login-error > span:last-child {
    position: relative;
    z-index: 1;
    flex: 1;
}

.field input.input-error {
    border-color: rgba(168, 85, 247, 0.48);

    box-shadow:
        0 0 0 3px rgba(168, 85, 247, 0.07),
        0 8px 24px rgba(0, 0, 0, 0.12);
}



/* ========================================================
   LOGIN LOGO
   Matches the dashboard Commercial Bank logo
   ======================================================== */

.brand .bank-logo {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(185, 164, 122, 0.30),
            rgba(128, 109, 73, 0.12)
        );

    border: 1px solid rgba(216, 199, 158, 0.20);

    box-shadow:
        0 0 30px rgba(185, 164, 122, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.brand .bank-logo .logo-curve {
    position: absolute;

    width: 23px;
    height: 23px;

    border: 3px solid #d8c79e;
    border-right-color: transparent;

    border-radius: 50%;

    transform: rotate(-35deg);

    display: block;
}

.brand .bank-logo .logo-pillar {
    position: absolute;

    width: 5px;
    height: 17px;

    border-radius: 4px;

    background:
        linear-gradient(
            180deg,
            #d8c79e,
            #b9a47a
        );

    box-shadow:
        0 0 12px rgba(192, 132, 252, 0.7);

    display: block;
}

/* ========================================================
   PROFESSIONAL BANKING LOGIN SURFACES
   2026-10-07
   ======================================================== */


/* ========================================================
   PROFESSIONAL BANKING LOGIN SURFACES
   2026-10-07
   ======================================================== */

html {
    background: #030305;
}

body {
    background:
        radial-gradient(
            900px 620px at 78% -8%,
            rgba(109, 40, 217, 0.085),
            transparent 62%
        ),
        radial-gradient(
            720px 520px at 8% 80%,
            rgba(88, 28, 135, 0.035),
            transparent 65%
        ),
        #030305;
}

/* --------------------------------------------------------
   LOGIN PAGE ATMOSPHERE
   -------------------------------------------------------- */

.login-page {
    background:
        radial-gradient(
            620px 420px at 50% 38%,
            rgba(109, 40, 217, 0.045),
            transparent 72%
        );
}

/* --------------------------------------------------------
   LOGIN CONTAINER — REMOVE OUTER PLATE
   -------------------------------------------------------- */

.login-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* --------------------------------------------------------
   BRAND AREA
   -------------------------------------------------------- */

.brand-copy h1 {
    color: rgba(255, 255, 255, 0.97);
}

.brand-copy p {
    color: rgba(236, 229, 244, 0.50);
}

/* --------------------------------------------------------
   FORM FIELDS
   -------------------------------------------------------- */

.form-group input {
    border-color: rgba(255, 255, 255, 0.075);

    background:
        rgba(255, 255, 255, 0.025);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.018);

    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.form-group input:focus {
    border-color: rgba(168, 85, 247, 0.42);

    background:
        rgba(168, 85, 247, 0.035);

    box-shadow:
        0 0 0 3px rgba(168, 85, 247, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

/* --------------------------------------------------------
   SIGN-IN BUTTON
   -------------------------------------------------------- */

#loginButton {
    background:
        linear-gradient(
            135deg,
            #b9a47a,
            #806d49
        );

    box-shadow:
        0 12px 30px rgba(109, 40, 217, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

#loginButton:hover:not(:disabled) {
    transform: translateY(-1px);

    box-shadow:
        0 15px 34px rgba(109, 40, 217, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);

    filter: brightness(1.04);
}

/* --------------------------------------------------------
   SECURITY FOOTER
   -------------------------------------------------------- */

.login-security {
    border-top-color: rgba(255, 255, 255, 0.055);

    color: rgba(236, 229, 244, 0.42);
}

/* --------------------------------------------------------
   FOOTER
   -------------------------------------------------------- */

.login-footer {
    color: rgba(236, 229, 244, 0.32);
}

/* ========================================================
   LOGIN — COMMERCIAL BANK LOGO GOLD
   ======================================================== */

.login-card .bank-logo {
    background:
        linear-gradient(
            145deg,
            rgba(185, 164, 122, 0.30),
            rgba(128, 109, 73, 0.12)
        ) !important;

    border: 1px solid rgba(216, 199, 158, 0.20) !important;

    box-shadow:
        0 0 30px rgba(185, 164, 122, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.login-card .bank-logo .logo-curve {
    border-color: #d8c79e !important;
    border-right-color: transparent !important;
}

.login-card .bank-logo .logo-pillar {
    background:
        linear-gradient(
            180deg,
            #d8c79e,
            #b9a47a
        ) !important;

    box-shadow:
        0 0 12px rgba(216, 199, 158, 0.70) !important;
}



/* CB_FULL_SCREEN_WAVE_LOGIN_BACKGROUND_V1 */
.login-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        linear-gradient(
            rgba(5, 5, 12, 0.30),
            rgba(5, 5, 12, 0.48)
        ),
        url("/static/login-background.jpg?v=20261016_1300") center center / cover no-repeat !important;
}

.login-card {
    position: relative;
    z-index: 5;
    background: rgba(8, 7, 16, 0.68) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.20) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* CB_ROUNDED_LOGIN_PANEL_V1 */
.login-card {
    border-radius: 28px !important;
    overflow: hidden;
}


/* CB_WELCOME_BACK_ACCENT_V1 */
.welcome .welcome-back-accent {
    color: #c34cff;
}


/* CB_WELCOME_BACK_BOLD_V1 */
.welcome h2 {
    font-size: 48px !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -1.8px !important;
}

.welcome .welcome-back-accent {
    color: #c44dff !important;
    font-weight: 800 !important;
}

@media (max-width: 520px) {
    .welcome h2 {
        font-size: 38px !important;
        letter-spacing: -1.3px !important;
    }
}


/* CB_REFERENCE_LOGIN_FINISH_V1 */
.welcome-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px !important;
    letter-spacing: 2.2px !important;
}
.welcome-label::after {
    content: "";
    display: inline-block;
    width: 48px;
    height: 1px;
    background: rgba(216, 199, 158, .8);
}
.welcome h2 {
    font-weight: 800 !important;
    text-wrap: nowrap;
}
.welcome .welcome-back-accent {
    background: linear-gradient(110deg, #d94cff, #a83cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.reference-field-icon {
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}
.reference-field-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
input {
    height: 58px;
    border-radius: 16px;
    background: rgba(245, 246, 255, .97);
    color: #191522;
    border-color: rgba(255,255,255,.6);
}
input::placeholder {
    color: #777180;
}
.primary-button {
    height: 60px;
    border-radius: 17px;
    background: linear-gradient(110deg, #c5ad7d, #92794c) !important;
    box-shadow: 0 12px 28px rgba(124, 58, 237, .20);
    font-size: 16px;
}
.reference-login-arrow {
    font-size: 25px;
    line-height: 1;
}
.login-footer {
    margin-top: 24px;
}
.security-note {
    margin-top: 24px;
}
.security-icon {
    background: linear-gradient(145deg, #a64bfa, #6f35bd);
    color: #fff;
}
@media (max-width: 520px) {
    .welcome h2 {
        font-size: 38px !important;
        letter-spacing: -1.3px !important;
    }
    input {
        height: 56px;
    }
}


/* CB_INPUT_TEXT_CLARITY_V1 */
#loginForm input {
    color: #211a2b !important;
    -webkit-text-fill-color: #211a2b !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: normal !important;
    padding: 0 20px !important;
}

#loginForm input::placeholder {
    color: #777181 !important;
    -webkit-text-fill-color: #777181 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

#loginForm input:-webkit-autofill,
#loginForm input:-webkit-autofill:hover,
#loginForm input:-webkit-autofill:focus {
    -webkit-text-fill-color: #211a2b !important;
    box-shadow: 0 0 0 1000px #f0effb inset !important;
}

/* CB_INPUT_TEXT_SMALL_BOLD_V1 */
#loginForm input {
    font-size: 14px !important;
    font-weight: 700 !important;
}

#loginForm input::placeholder {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* CB_GOLD_BOLD_BRAND_NAME_V1 */
.brand-copy h1 {
    color: #d8c79e !important;
    font-weight: 800 !important;
}

/* CB_COMMERCIAL_NAME_WHITE_V1 */
.brand-copy h1 {
    color: #ffffff !important;
}

/* CB_COMMERCIAL_ONLY_WHITE_V1 */
.brand-copy h1 .commercial-white {
    color: #ffffff !important;
}
.brand-copy h1 {
    color: #d8c79e !important;
}

/* CB_FORGOT_PASSWORD_LINK_V1 */
.login-footer {
    justify-content: center !important;
    text-align: center !important;
}
#forgotPasswordButton {
    color: #b68cff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer;
}

/* CB_LOGIN_FOOTER_TWO_ACTIONS_V1 */
.login-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.login-footer .text-button {
    color: #b68cff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
#registerButton { margin-right: auto !important; }
#forgotPasswordButton { margin-left: auto !important; }


/* CB_LOGIN_NO_SCROLL_NO_ZOOM_V1 */
html,
body {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
}

.login-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}

.login-card {
    flex-shrink: 1;
}


/* REGISTRATION_FIELD_VALIDATION_V1 */
.register-field-error,
#registerForm input[aria-invalid="true"],
#registerForm select[aria-invalid="true"],
#registerForm textarea[aria-invalid="true"] {
    border-color: #e05252 !important;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.13) !important;
}

/* Registration validation error visibility fix */
#registerError[hidden] {
    display: none !important;
}

#registerError:not([hidden]) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* CB_COMPACT_MOBILE_LOGIN_V1
   Compact login panel on mobile without changing login behavior. */
@media (max-width: 520px) {
    .login-page {
        box-sizing: border-box !important;
        padding: 12px 14px 18px !important;
    }

    .login-card {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 390px !important;
        padding: 19px 19px 17px !important;
        flex-shrink: 1 !important;
        border-radius: 22px !important;
    }

    .brand {
        gap: 11px !important;
        margin-bottom: 19px !important;
    }

    .brand .bank-logo {
        flex-shrink: 0 !important;
        transform: scale(0.88);
        transform-origin: left center;
    }

    .brand-copy h1 {
        font-size: 21px !important;
        line-height: 1.2 !important;
    }

    .brand-copy p {
        margin-top: 3px !important;
        font-size: 11px !important;
    }

    .welcome {
        margin-bottom: 17px !important;
    }

    .welcome-label {
        margin-bottom: 7px !important;
        font-size: 9px !important;
    }

    .welcome h2 {
        font-size: 32px !important;
        line-height: 1.08 !important;
        letter-spacing: -1px !important;
    }

    .welcome p {
        margin-top: 7px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .field {
        margin-bottom: 12px !important;
    }

    #loginForm input {
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
    }

    #loginForm label {
        margin-bottom: 6px !important;
        font-size: 12px !important;
    }

    .primary-button {
        height: 49px !important;
        min-height: 49px !important;
        border-radius: 13px !important;
        margin-top: 2px !important;
    }

    .login-footer {
        margin-top: 16px !important;
        gap: 8px !important;
    }

    .login-footer .text-button {
        font-size: 11px !important;
    }

    .security-note {
        margin-top: 14px !important;
        padding-top: 11px !important;
        gap: 6px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 16px 15px 14px !important;
    }

    .brand {
        margin-bottom: 15px !important;
    }

    .welcome {
        margin-bottom: 13px !important;
    }

    .welcome h2 {
        font-size: 29px !important;
    }

    .security-note {
        margin-top: 11px !important;
    }
}

/* CB_IPHONE_INPUT_AUTO_ZOOM_FIX_V1
   Prevent iPhone Safari focus zoom by keeping editable controls at 16px.
   Preserve normal page zoom and existing banking behavior. */
@media (max-width: 767px) {
    input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* COMMERCIAL BANK — SYSTEM-WIDE TEXT SELECTION RULES */
html,
body,
body * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Keep editable fields usable for normal input and copy/paste. */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
textarea,
select,
[contenteditable="true"],
[contenteditable=""],
[role="textbox"] {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default;
}

/* Transaction Details must remain selectable and copyable. */
#transactionDetailsContent,
#transactionDetailsContent * {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default;
}

/* END COMMERCIAL BANK TEXT SELECTION RULES */



/* =========================================================
   WESTFORD_CINEMATIC_INTRO_V1
   Black, midnight purple and restrained champagne gold.
   The existing login page and authentication remain intact.
   ========================================================= */

.westford-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 44%, rgba(64, 35, 105, .29), transparent 42%),
        radial-gradient(ellipse at 50% 100%, rgba(103, 72, 146, .10), transparent 48%),
        #050408;
    color: #f7f2e9;
    opacity: 1;
    visibility: visible;
    transition: opacity .75s ease, visibility .75s ease;
}

.westford-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .23;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.intro-atmosphere {
    position: absolute;
    width: min(72vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(65px);
    pointer-events: none;
    opacity: 0;
    animation: westfordAtmosphere 2.8s ease-out forwards;
}

.intro-atmosphere-one {
    background: rgba(94, 48, 145, .19);
    left: -24%;
    top: 8%;
}

.intro-atmosphere-two {
    background: rgba(180, 139, 71, .10);
    right: -27%;
    bottom: -24%;
    animation-delay: .25s;
}

.westford-intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 27px;
    width: min(90vw, 460px);
    text-align: center;
    animation: westfordBrandReveal 1.15s cubic-bezier(.2,.75,.2,1) both;
}

.westford-intro-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(220, 190, 127, .42);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(214,185,125,.15), rgba(62,40,85,.20));
    box-shadow:
        0 0 0 8px rgba(205,171,109,.025),
        0 0 48px rgba(185,144,76,.12),
        inset 0 1px 0 rgba(255,255,255,.12);
    animation: westfordLogoGlow 2.4s ease-in-out .35s both;
}

.intro-logo-curve {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 4px solid #d8c79e;
    border-right-color: transparent;
    border-radius: 50%;
    transform: rotate(-35deg);
}

.intro-logo-pillar {
    position: absolute;
    width: 7px;
    height: 34px;
    border-radius: 5px;
    background: linear-gradient(180deg, #f1dfb2, #b9a47a);
    box-shadow: 0 0 18px rgba(216,199,158,.36);
}

.intro-logo-glint {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 1px;
    height: 0;
    transform: translateX(-50%);
    background: linear-gradient(transparent, #e8d3a0, transparent);
    box-shadow: 0 0 12px rgba(232,211,160,.5);
    animation: westfordGlint .9s ease-out .65s both;
}

.westford-intro-name {
    opacity: 0;
    transform: translateY(12px);
    animation: westfordNameReveal .8s ease-out .55s forwards;
}

.intro-brand-name {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 6vw, 35px);
    font-weight: 500;
    letter-spacing: .17em;
    line-height: 1.35;
}

.intro-gold {
    color: #d8c79e;
    font-size: .73em;
    letter-spacing: .30em;
    padding-left: .30em;
}

.intro-gold-rule {
    width: 0;
    height: 1px;
    margin: 22px auto 15px;
    background: linear-gradient(90deg, transparent, #d8c79e, transparent);
    animation: westfordRuleReveal .65s ease-out 1s forwards;
}

.westford-intro-name p {
    margin: 0;
    color: rgba(236,229,244,.57);
    font: 10px/1.5 Arial, sans-serif;
    letter-spacing: .30em;
}

.westford-intro-skip {
    position: absolute;
    z-index: 5;
    top: max(24px, env(safe-area-inset-top));
    right: max(22px, env(safe-area-inset-right));
    padding: 10px 13px;
    border: 1px solid rgba(216,199,158,.25);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.76);
    font-size: 11px;
    letter-spacing: .07em;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.westford-intro-skip:hover,
.westford-intro-skip:focus-visible {
    border-color: rgba(216,199,158,.7);
    background: rgba(216,199,158,.09);
    color: #fff;
    outline: none;
}

.westford-intro-skip span {
    margin-left: 6px;
    color: #d8c79e;
}

.westford-intro-bottom {
    position: absolute;
    bottom: max(35px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(236,229,244,.37);
    font: 9px/1.5 Arial, sans-serif;
    letter-spacing: .19em;
    animation: westfordFooterReveal .7s ease-out 1s both;
}

.intro-bottom-line {
    width: 24px;
    height: 1px;
    background: rgba(216,199,158,.40);
}

html.westford-intro-active .westford-intro ~ .ambient,
html.westford-intro-active .westford-intro ~ .background-orbit {
    animation-play-state: paused;
}

html.westford-intro-active .login-card,
html.westford-intro-active .page-footer {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.westford-intro-active .login-card {
    transform: translateY(14px);
}

.westford-intro.westford-intro-exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.westford-intro-finished .login-card {
    animation: westfordLoginReveal .65s cubic-bezier(.2,.75,.2,1) both;
}

html.westford-intro-finished .page-footer {
    animation: westfordLoginReveal .65s ease both;
}

@keyframes westfordBrandReveal {
    from { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes westfordNameReveal {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes westfordLogoGlow {
    0%, 100% { box-shadow: 0 0 0 8px rgba(205,171,109,.025), 0 0 48px rgba(185,144,76,.12), inset 0 1px 0 rgba(255,255,255,.12); }
    50% { box-shadow: 0 0 0 12px rgba(205,171,109,.04), 0 0 68px rgba(185,144,76,.23), inset 0 1px 0 rgba(255,255,255,.18); }
}

@keyframes westfordGlint {
    0% { height: 0; opacity: 0; }
    25% { opacity: 1; }
    100% { height: 112px; opacity: 0; }
}

@keyframes westfordRuleReveal {
    to { width: min(210px, 60vw); }
}

@keyframes westfordAtmosphere {
    0% { opacity: 0; transform: scale(.82); }
    40% { opacity: 1; }
    100% { opacity: .55; transform: scale(1.08); }
}

@keyframes westfordFooterReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes westfordLoginReveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
    .westford-intro-mark {
        width: 78px;
        height: 78px;
        border-radius: 24px;
    }

    .intro-logo-curve {
        width: 39px;
        height: 39px;
    }

    .intro-logo-pillar {
        height: 29px;
    }

    .westford-intro-content {
        gap: 24px;
    }

    .westford-intro-bottom {
        gap: 8px;
        font-size: 8px;
        letter-spacing: .13em;
    }

    .intro-bottom-line {
        width: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .westford-intro,
    .westford-intro *,
    html.westford-intro-finished .login-card,
    html.westford-intro-finished .page-footer {
        animation: none !important;
        transition: none !important;
    }
}


/* WESTFORD_STAGGERED_LOGIN_BACKGROUND_V1 */
.login-page {
    background-image:
        radial-gradient(ellipse at 50% 15%, rgba(91, 45, 135, .22), transparent 48%),
        radial-gradient(ellipse at 12% 80%, rgba(65, 34, 100, .16), transparent 40%),
        radial-gradient(ellipse at 90% 75%, rgba(184, 146, 76, .07), transparent 35%),
        linear-gradient(145deg, #050407, #090611 55%, #050407) !important;
    background-color: #050407 !important;
    background-attachment: fixed !important;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(0,0,0,.28) 100%);
}

.login-page .ambient {
    opacity: .22 !important;
    filter: blur(75px) !important;
}

.login-page .background-orbit {
    opacity: .12 !important;
    border-color: rgba(216, 199, 158, .12) !important;
}

/* Remove the large panel behind the login elements. */
.login-card {
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    padding: 30px 32px !important;
}

/* Keep the login content readable without a surrounding plate. */
.login-card .brand,
.login-card .welcome,
.login-card #loginForm,
.login-card .login-footer,
.login-card .security-note {
    position: relative;
    z-index: 2;
}

.login-card .brand-copy h1 {
    color: #f7f2e9 !important;
}

.login-card .brand-copy p {
    color: rgba(238, 231, 246, .64) !important;
}

.login-card .welcome p,
.login-card .welcome-label {
    color: rgba(238, 231, 246, .66);
}

.login-card .welcome .welcome-back-accent {
    background: linear-gradient(110deg, #ead7a6, #b9a47a) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Dark individual fields replace the white input surfaces. */
.login-card #loginForm input:not([type="checkbox"]):not([type="hidden"]) {
    background: rgba(17, 13, 25, .82) !important;
    background-color: rgba(17, 13, 25, .82) !important;
    border: 1px solid rgba(216, 199, 158, .24) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #ead7a6 !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
    transition: border-color .25s ease, box-shadow .25s ease,
                background .25s ease !important;
}

.login-card #loginForm input:not([type="checkbox"]):not([type="hidden"])::placeholder {
    color: rgba(235, 228, 242, .42) !important;
}

.login-card #loginForm input:not([type="checkbox"]):not([type="hidden"]):focus {
    background: rgba(21, 15, 31, .96) !important;
    border-color: rgba(216, 199, 158, .82) !important;
    box-shadow: 0 0 0 3px rgba(216, 199, 158, .09),
                0 0 24px rgba(111, 69, 153, .12) !important;
}

/* Gold sign-in button with restrained lighting. */
.login-card .primary-button {
    position: relative;
    overflow: hidden;
    color: #17120a !important;
    background: linear-gradient(110deg, #b9a47a, #ead7a6 48%, #b9a47a) !important;
    border: 1px solid rgba(245, 223, 172, .72) !important;
    box-shadow: 0 8px 28px rgba(185, 164, 122, .13),
                inset 0 1px 0 rgba(255,255,255,.35) !important;
    transition: transform .25s ease, box-shadow .25s ease,
                filter .25s ease !important;
}

.login-card .primary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 12px 34px rgba(185, 164, 122, .22),
                inset 0 1px 0 rgba(255,255,255,.4) !important;
}

.login-card .primary-button:active {
    transform: translateY(0);
}

.login-card .login-footer .text-button {
    color: #d8c79e !important;
}

.login-card .security-note {
    border-top-color: rgba(216, 199, 158, .13) !important;
    color: rgba(238, 231, 246, .53) !important;
}

/* Keep the transparent layout comfortable on smaller phones. */
@media (max-width: 520px) {
    .login-card {
        padding: 24px 18px !important;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 18px 12px !important;
    }
}



/* WESTFORD_STAGGERED_LOGIN_REVEAL_V1 */
html.westford-intro-finished .login-card {
    animation: none !important;
}

html.westford-intro-finished .login-card .brand,
html.westford-intro-finished .login-card .welcome,
html.westford-intro-finished .login-card #loginForm .field,
html.westford-intro-finished .login-card #loginForm #loginButton,
html.westford-intro-finished .login-card .login-footer,
html.westford-intro-finished .login-card .security-note {
    animation: westfordElementReveal .68s cubic-bezier(.2,.75,.2,1) both;
}

html.westford-intro-finished .login-card .brand {
    animation-delay: .04s;
}

html.westford-intro-finished .login-card .welcome {
    animation-delay: .16s;
}

html.westford-intro-finished .login-card #loginForm .field:nth-child(1) {
    animation-delay: .27s;
}

html.westford-intro-finished .login-card #loginForm .field:nth-child(2) {
    animation-delay: .39s;
}

html.westford-intro-finished .login-card #loginForm #loginButton {
    animation-delay: .52s;
}

html.westford-intro-finished .login-card .login-footer {
    animation-delay: .63s;
}

html.westford-intro-finished .login-card .security-note {
    animation-delay: .72s;
}

@keyframes westfordElementReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.westford-intro-finished .login-card,
    html.westford-intro-finished .login-card *,
    html.westford-intro-finished .page-footer {
        animation: none !important;
        transition: none !important;
        filter: none !important;
    }
}



/* WESTFORD_CHROME_DARK_AUTOFILL_V1
   Keep Chrome autofilled login fields dark on Android.
*/
.login-page .login-card #loginForm input,
.login-page .login-card #loginForm input:focus,
.login-page .login-card #loginForm input:active,
.login-page .login-card #loginForm input:-webkit-autofill,
.login-page .login-card #loginForm input:-webkit-autofill:hover,
.login-page .login-card #loginForm input:-webkit-autofill:focus,
.login-page .login-card #loginForm input:-webkit-autofill:active {
    background-color: #110d19 !important;
    background: #110d19 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ead7a6 !important;
    border-color: rgba(216, 199, 158, 0.32) !important;
    -webkit-box-shadow: 0 0 0 1000px #110d19 inset !important;
    box-shadow: 0 0 0 1000px #110d19 inset !important;
    transition: background-color 999999s ease-out 0s !important;
}

.login-page .login-card #loginForm input:-webkit-autofill:focus {
    border-color: #d8c79e !important;
    -webkit-box-shadow:
        0 0 0 1000px #110d19 inset,
        0 0 0 3px rgba(216, 199, 158, 0.10) !important;
    box-shadow:
        0 0 0 1000px #110d19 inset,
        0 0 0 3px rgba(216, 199, 158, 0.10) !important;
}

.login-page .login-card #loginForm input::placeholder {
    color: rgba(235, 228, 242, 0.45) !important;
    -webkit-text-fill-color: rgba(235, 228, 242, 0.45) !important;
}



/* =========================================================
   WESTFORD_WU_GLOBE_LOGIN_LOGO_V1
   Gold WU monogram, globe and sweeping signature arc.
   Scoped to the login brand only.
   ========================================================= */

.login-page .brand .bank-logo.wu-globe-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 3px;
    overflow: visible;
    border: 1px solid rgba(225, 190, 104, .46) !important;
    border-radius: 20px;
    background:
        radial-gradient(circle at 32% 22%, rgba(219, 179, 91, .16), transparent 60%),
        linear-gradient(145deg, rgba(13, 27, 53, .96), rgba(5, 8, 19, .98)) !important;
    box-shadow:
        0 0 24px rgba(196, 151, 57, .13),
        inset 0 1px 0 rgba(255, 239, 190, .15) !important;
    isolation: isolate;
}

.login-page .brand .wu-logo-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .38));
}

.login-page .brand .bank-logo.wu-globe-logo::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border-radius: 24px;
    border: 1px solid rgba(216, 199, 158, .10);
    pointer-events: none;
}

@media (max-width: 520px) {
    .login-page .brand .bank-logo.wu-globe-logo {
        flex-basis: 66px;
        width: 66px;
        height: 66px;
        border-radius: 17px;
    }
}



/* WESTFORD_WU_LOGO_TRANSPARENT_REFINEMENT_V2
   Only the login emblem is changed.
   No square, no logo background, no surrounding decoration.
*/
.login-page .brand .bank-logo.wu-globe-logo {
    flex: 0 0 66px !important;
    width: 66px !important;
    height: 42px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    isolation: auto !important;
}

.login-page .brand .bank-logo.wu-globe-logo::before,
.login-page .brand .bank-logo.wu-globe-logo::after {
    content: none !important;
    display: none !important;
}

.login-page .brand .wu-logo-svg {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 942 / 492;
    object-fit: contain;
    overflow: visible !important;
    filter: none !important;
}

@media (max-width: 520px) {
    .login-page .brand .bank-logo.wu-globe-logo {
        flex: 0 0 66px !important;
        width: 66px !important;
        height: 42px !important;
        padding: 0 !important;
    }
}

/* WESTFORD INTRO — CURRENT WU GLOBE LOGO */
.westford-intro-mark {
    width: min(68vw, 290px);
    height: auto;
    aspect-ratio: 942 / 492;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.westford-intro-mark .westford-intro-wu-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 18px rgba(218, 171, 65, .22));
}

.westford-intro-mark .intro-logo-curve,
.westford-intro-mark .intro-logo-pillar,
.westford-intro-mark .intro-logo-glint {
    display: none !important;
}

/* WESTFORD INTRO — ACTUAL WU LOGO, TRANSPARENT PREMIUM PRESENTATION */
.westford-intro .westford-intro-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: min(72vw, 320px);
    height: auto;
    aspect-ratio: 360 / 190;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
    animation: westfordIntroMarkGlow 2.4s ease-in-out .35s both;
}

.westford-intro .westford-intro-wu-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 9px rgba(220, 174, 71, .18));
}

.westford-intro .intro-logo-curve,
.westford-intro .intro-logo-pillar,
.westford-intro .intro-logo-glint {
    display: none !important;
}

@keyframes westfordIntroMarkGlow {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.94);
        filter: drop-shadow(0 0 0 rgba(220, 174, 71, 0));
    }
    55% {
        opacity: 1;
        filter: drop-shadow(0 0 18px rgba(220, 174, 71, .30));
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px rgba(220, 174, 71, .17));
    }
}

@media (max-width: 520px) {
    .westford-intro .westford-intro-mark {
        width: min(72vw, 300px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .westford-intro .westford-intro-mark {
        animation: none !important;
    }
}

/* WESTFORD INTRO — SLOW, REFINED GOLD REVEAL V2 */
.westford-intro .westford-intro-content {
    animation: westfordPremiumContentReveal 1.8s cubic-bezier(.22,.75,.25,1) both;
}

.westford-intro .westford-intro-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: min(68vw, 290px);
    height: auto;
    aspect-ratio: 942 / 492;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
    opacity: 0;
    transform: translateY(9px) scale(.985);
    animation: westfordPremiumLogoReveal 4.2s cubic-bezier(.2,.7,.2,1) .25s both;
    will-change: opacity, transform, filter;
}

.westford-intro .westford-intro-wu-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    overflow: visible;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.22))
            drop-shadow(0 0 7px rgba(218,171,65,.12));
}

.westford-intro .intro-logo-curve,
.westford-intro .intro-logo-pillar,
.westford-intro .intro-logo-glint {
    display: none !important;
}

.westford-intro .westford-intro-name {
    opacity: 0;
    transform: translateY(9px);
    animation: westfordPremiumNameReveal 1.35s cubic-bezier(.2,.7,.2,1) 1.55s both;
}

.westford-intro .intro-gold-rule {
    transform-origin: center;
    animation-duration: 1.5s !important;
    animation-delay: 2.15s !important;
}

.westford-intro .westford-intro-bottom {
    opacity: 0;
    animation: westfordPremiumFooterReveal 1.4s ease 2.65s both;
}

@keyframes westfordPremiumContentReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes westfordPremiumLogoReveal {
    0% {
        opacity: 0;
        transform: translateY(9px) scale(.985);
        filter: brightness(.78)
                drop-shadow(0 0 0 rgba(218,171,65,0));
    }
    38% {
        opacity: 1;
        filter: brightness(.96)
                drop-shadow(0 0 9px rgba(218,171,65,.15));
    }
    72% {
        opacity: 1;
        filter: brightness(1.04)
                drop-shadow(0 0 18px rgba(218,171,65,.24));
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1)
                drop-shadow(0 2px 5px rgba(0,0,0,.22))
                drop-shadow(0 0 10px rgba(218,171,65,.15));
    }
}

@keyframes westfordPremiumNameReveal {
    from {
        opacity: 0;
        transform: translateY(9px);
        letter-spacing: .20em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes westfordPremiumFooterReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 520px) {
    .westford-intro .westford-intro-mark {
        width: min(68vw, 290px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .westford-intro .westford-intro-content,
    .westford-intro .westford-intro-mark,
    .westford-intro .westford-intro-name,
    .westford-intro .westford-intro-bottom {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}


/* WESTFORD INTRO — FIVE-SECOND CLEAN SVG PRESENTATION */
.westford-intro .westford-intro-mark {
    width: min(68vw, 290px);
    height: auto;
    aspect-ratio: 942 / 492;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.westford-intro .westford-intro-wu-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    overflow: visible;
    shape-rendering: geometricPrecision;
    image-rendering: auto;
    transform: translateZ(0);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.18))
            drop-shadow(0 0 5px rgba(218,171,65,.10));
}

.westford-intro .westford-intro-mark {
    animation-duration: 3.6s !important;
    animation-delay: .15s !important;
}

.westford-intro .westford-intro-content {
    animation-duration: 1.5s !important;
}

.westford-intro .westford-intro-name {
    animation-duration: 1.1s !important;
}

@media (max-width: 520px) {
    .westford-intro .westford-intro-mark {
        width: min(68vw, 290px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .westford-intro .westford-intro-mark,
    .westford-intro .westford-intro-content,
    .westford-intro .westford-intro-name {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* WESTFORD PREMIUM LOGIN TRANSITION V2 */

html.westford-intro-finished .login-card {
    animation: none !important;
}

html.westford-intro-finished .login-card .brand,
html.westford-intro-finished .login-card .welcome,
html.westford-intro-finished .login-card #loginForm .field,
html.westford-intro-finished .login-card #loginForm #loginButton,
html.westford-intro-finished .login-card .login-footer {
    opacity: 0;
    animation: westfordPremiumLoginReveal .95s cubic-bezier(.2,.75,.25,1) both;
    will-change: opacity, transform, filter;
}

/* Brand identity */
html.westford-intro-finished .login-card .brand {
    animation-delay: .08s;
}

/* Welcome heading */
html.westford-intro-finished .login-card .welcome {
    animation-delay: .24s;
}

/* Email field */
html.westford-intro-finished .login-card #loginForm .field:nth-child(1) {
    animation-delay: .40s;
}

/* Password field */
html.westford-intro-finished .login-card #loginForm .field:nth-child(2) {
    animation-delay: .54s;
}

/* Gold sign-in button */
html.westford-intro-finished .login-card #loginForm #loginButton {
    animation-name: westfordPremiumButtonReveal;
    animation-duration: 1.05s;
    animation-delay: .72s;
}

/* Footer links */
html.westford-intro-finished .login-card .login-footer {
    animation-delay: .90s;
}

@keyframes westfordPremiumLoginReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
        filter: blur(4px);
    }

    65% {
        opacity: 1;
        filter: blur(.5px);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes westfordPremiumButtonReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(.985);
        filter: brightness(.82);
        box-shadow: 0 0 0 rgba(218,171,65,0);
    }

    65% {
        opacity: 1;
        filter: brightness(1.08);
        box-shadow:
            0 0 28px rgba(218,171,65,.19),
            inset 0 1px 0 rgba(255,255,255,.35);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: brightness(1);
        box-shadow:
            0 8px 28px rgba(185,164,122,.13),
            inset 0 1px 0 rgba(255,255,255,.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.westford-intro-finished .login-card .brand,
    html.westford-intro-finished .login-card .welcome,
    html.westford-intro-finished .login-card #loginForm .field,
    html.westford-intro-finished .login-card #loginForm #loginButton,
    html.westford-intro-finished .login-card .login-footer {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        will-change: auto;
    }
}

/* WESTFORD PREMIUM LOGIN REVEAL V3 — FASTER AND SMOOTHER */

html.westford-intro-finished .login-card .brand,
html.westford-intro-finished .login-card .welcome,
html.westford-intro-finished .login-card #loginForm .field,
html.westford-intro-finished .login-card #loginForm #loginButton,
html.westford-intro-finished .login-card .login-footer {
    animation-duration: .85s !important;
    will-change: opacity, transform;
}

/* Faster, tighter sequence */
html.westford-intro-finished .login-card .brand {
    animation-delay: .10s !important;
}

html.westford-intro-finished .login-card .welcome {
    animation-delay: .35s !important;
}

html.westford-intro-finished .login-card #loginForm .field:nth-child(1) {
    animation-delay: .65s !important;
}

html.westford-intro-finished .login-card #loginForm .field:nth-child(2) {
    animation-delay: .95s !important;
}

html.westford-intro-finished .login-card #loginForm #loginButton {
    animation-duration: .90s !important;
    animation-delay: 1.25s !important;
}

html.westford-intro-finished .login-card .login-footer {
    animation-delay: 1.55s !important;
}

/* Preserve the premium button lighting, but keep it brief */
@media (prefers-reduced-motion: reduce) {
    html.westford-intro-finished .login-card .brand,
    html.westford-intro-finished .login-card .welcome,
    html.westford-intro-finished .login-card #loginForm .field,
    html.westford-intro-finished .login-card #loginForm #loginButton,
    html.westford-intro-finished .login-card .login-footer {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* WESTFORD REGISTRATION — MATCH LOGIN WU GLOBE LOGO */
.login-page .register-card .brand .bank-logo.wu-globe-logo {
    position: relative;
    display: flex;
    flex: 0 0 104px;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 54px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: auto;
}

.login-page .register-card .brand .bank-logo.wu-globe-logo::before,
.login-page .register-card .brand .bank-logo.wu-globe-logo::after {
    content: none !important;
    display: none !important;
}

.login-page .register-card .brand .wu-logo-svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 942 / 492;
    object-fit: contain;
    overflow: visible;
    filter: none;
}

@media (max-width: 520px) {
    .login-page .register-card .brand .bank-logo.wu-globe-logo {
        flex: 0 0 66px;
        width: 66px;
        height: 42px;
        padding: 0;
    }
}


/* EARTH_BACKGROUND_LOGIN_V1 — cinematic blue Earth behind login */
#earthBackground {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.25s ease, visibility 1.25s ease;
    contain: strict;
    background: #000000;
}

#earthBackground canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#earthBackground::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
}

html.earth-revealed #earthBackground {
    opacity: .78;
    visibility: visible;
}

#earthBackground.earth-unavailable {
    display: none;
}

@media (max-width: 700px) {
    #earthBackground {
        background: #000000;
    }

    #earthBackground::after {
        background: transparent;
    }

    html.earth-revealed #earthBackground {
        opacity: .66;
    }
}

@media (prefers-reduced-motion: reduce) {
    #earthBackground {
        transition: none;
    }
}


/* LOGIN CUSTOMER CARE ICON V2 */
#loginCustomerCareIcon {
    position: fixed !important;
    top: 205px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 100000 !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid #d8b66a !important;
    border-radius: 50% !important;
    background: #15101e !important;
    color: #e6c477 !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.35) !important;
    cursor: pointer;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}
#loginCustomerCareIcon svg {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
#loginCustomerCareIcon:focus-visible {
    outline: 2px solid #e6c477;
    outline-offset: 3px;
}
/* END LOGIN CUSTOMER CARE ICON V1 */

/* LOGIN CUSTOMER CARE INTRO VISIBILITY AND POSITION V3 */
#loginCustomerCareIcon {
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
}
html.westford-intro-active #loginCustomerCareIcon {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
html.westford-intro-finished #loginCustomerCareIcon {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
/* END LOGIN CUSTOMER CARE INTRO VISIBILITY AND POSITION V3 */


/* CUSTOMER CARE ICON COMPACT SIZE V1 */
#loginCustomerCareIcon {
    right: 32px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
}
#loginCustomerCareIcon svg {
    width: 15px !important;
    height: 15px !important;
}
/* END CUSTOMER CARE ICON COMPACT SIZE V1 */


/* LOGIN_CUSTOMER_CARE_OVERLAY_V1 */
.login-support-overlay[hidden] {
    display: none !important;
}
.login-support-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    background: #f4f5f9;
    color: #20243a;
    font-family: inherit;
}
.login-support-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    height: 100%;
    min-height: 0;
    background: #f4f5f9;
    overflow: hidden;
}
.login-support-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    background: #fff;
    border-bottom: 1px solid #e6e8ef;
}
.login-support-back {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 50%;
    background: #f0efff;
    color: #5944b8;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
.login-support-header > div {
    flex: 1;
    min-width: 0;
}
.login-support-header > div > span {
    color: #7566bb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}
.login-support-header h1 {
    margin: 3px 0 0;
    font-size: 21px;
    color: #25223e;
}
.login-support-status {
    color: #387b5b;
    font-size: 11px;
    font-weight: 600;
}
.login-support-messages {
    flex: 1 1 auto;
    min-height: 80px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 14px;
}
.login-support-message {
    max-width: 88%;
    width: fit-content;
    margin-bottom: 14px;
    padding: 12px 14px 8px;
    border-radius: 14px;
    overflow-wrap: anywhere;
}
.login-support-agent {
    margin-right: auto;
    background: #fff;
    border: 1px solid #e7e8f0;
    border-top-left-radius: 4px;
}
.login-support-customer {
    margin-left: auto;
    background: #e9e5ff;
    border-top-right-radius: 4px;
}
.login-support-sender {
    display: block;
    margin-bottom: 5px;
    color: #5c4ab1;
    font-size: 11px;
    font-weight: 700;
}
.login-support-message p {
    margin: 0;
    color: #292a3b;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.login-support-message time {
    display: block;
    margin-top: 6px;
    color: #85879a;
    font-size: 10px;
    text-align: right;
}
.login-support-faq {
    flex: 0 0 auto;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #e7e8f0;
}
.login-support-faq h2 {
    margin: 0 0 9px;
    font-size: 12px;
    color: #55556e;
}
.login-support-questions {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.login-support-questions button {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid #ded9f7;
    border-radius: 18px;
    background: #f7f5ff;
    color: #5443a4;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.login-support-compose {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #e7e8f0;
}
.login-support-compose label {
    display: block;
    margin-bottom: 6px;
    color: #66677c;
    font-size: 11px;
}
.login-support-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-support-input-row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #dfe1eb;
    border-radius: 12px;
    background: #fff;
    color: #25263a;
    font: inherit;
    font-size: 14px;
}
.login-support-input-row > button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 12px;
    background: #5b49bd;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.login-support-notice {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 14px max(10px, env(safe-area-inset-bottom));
    background: #fff;
    color: #77788a;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}
@media (min-width: 601px) {
    .login-support-overlay {
        align-items: center;
        padding: 20px;
    }
    .login-support-page {
        height: min(850px, 100%);
        border-radius: 18px;
        box-shadow: 0 18px 70px rgba(20, 18, 50, .22);
    }
}
/* END LOGIN_CUSTOMER_CARE_OVERLAY_V1 */


/* LOGIN_CUSTOMER_CARE_TYPING_V1 */
.login-support-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin: 0 auto 14px 0;
    padding: 13px 16px;
    border: 1px solid #e7e8f0;
    border-radius: 14px;
    border-top-left-radius: 4px;
    background: #fff;
}
.login-support-typing span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7566bb;
    animation: loginSupportTypingPulse 1s infinite ease-in-out;
}
.login-support-typing span:nth-child(2) {
    animation-delay: .15s;
}
.login-support-typing span:nth-child(3) {
    animation-delay: .3s;
}
@keyframes loginSupportTypingPulse {
    0%, 60%, 100% {
        opacity: .35;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}
.login-support-input-row > button:disabled,
.login-support-questions button:disabled {
    opacity: .55;
    cursor: wait;
}
/* END LOGIN_CUSTOMER_CARE_TYPING_V1 */


/* LOGIN_CUSTOMER_CARE_PERMANENT_DARK_V1 */
.login-support-overlay {
    background: #090a10;
    color: #f4f2ff;
    color-scheme: dark;
}

.login-support-page {
    background: #090a10;
    color: #f4f2ff;
}

.login-support-header {
    background: #10111b;
    border-bottom-color: #28283a;
}

.login-support-back {
    background: #25203d;
    color: #c6b8ff;
}

.login-support-header > div > span {
    color: #a99aff;
}

.login-support-header h1 {
    color: #ffffff;
}

.login-support-status {
    color: #7be0ad;
}

.login-support-messages {
    background: #090a10;
}

.login-support-agent {
    background: #191a26;
    border-color: #303144;
}

.login-support-customer {
    background: #302455;
    border-color: #49387b;
}

.login-support-message p {
    color: #f2f0ff;
}

.login-support-sender {
    color: #c2b5ff;
}

.login-support-message time {
    color: #9b9bb0;
}

.login-support-faq {
    background: #10111b;
    border-top-color: #28283a;
}

.login-support-faq h2 {
    color: #d4d1e8;
}

.login-support-questions button {
    background: #1b192b;
    border-color: #51427d;
    color: #d3c7ff;
}

.login-support-questions button:active {
    background: #302455;
}

.login-support-compose {
    background: #10111b;
    border-top-color: #28283a;
}

.login-support-compose label {
    color: #b6b4cb;
}

.login-support-input-row input {
    background: #191a26;
    border-color: #38394e;
    color: #ffffff;
    caret-color: #b6a6ff;
}

.login-support-input-row input::placeholder {
    color: #9292a8;
}

.login-support-input-row input:focus {
    outline: 2px solid #7560ce;
    outline-offset: 1px;
    border-color: #9581ed;
}

.login-support-input-row > button {
    background: #6b54d3;
    color: #ffffff;
}

.login-support-input-row > button:active {
    background: #5741b5;
}

.login-support-notice {
    background: #10111b;
    color: #9b9bb0;
}

.login-support-typing {
    background: #191a26;
    border-color: #303144;
}

.login-support-typing span {
    background: #b6a6ff;
}

.login-support-input-row > button:disabled,
.login-support-questions button:disabled {
    opacity: .45;
}
/* END LOGIN_CUSTOMER_CARE_PERMANENT_DARK_V1 */\n

/* LOGIN_CUSTOMER_CARE_ZOOM_V1 */
.login-support-overlay {
    --support-origin-x: calc(100% - 32px);
    --support-origin-y: 32px;
    opacity: 1;
    clip-path: circle(150% at var(--support-origin-x) var(--support-origin-y));
    transition:
        clip-path 700ms cubic-bezier(.2, .75, .25, 1),
        opacity 300ms ease;
}

.login-support-overlay.login-support-opening {
    clip-path: circle(0 at var(--support-origin-x) var(--support-origin-y));
    opacity: .65;
}

.login-support-overlay.login-support-opening.login-support-open {
    clip-path: circle(150% at var(--support-origin-x) var(--support-origin-y));
    opacity: 1;
}

.login-support-overlay.login-support-closing {
    clip-path: circle(0 at var(--support-origin-x) var(--support-origin-y));
    opacity: .25;
    pointer-events: none;
}

.login-support-overlay .login-support-page {
    transform: scale(1);
    transition: transform 700ms cubic-bezier(.2, .75, .25, 1);
    transform-origin: var(--support-origin-x) var(--support-origin-y);
}

.login-support-overlay.login-support-opening .login-support-page {
    transform: scale(.94);
}

.login-support-overlay.login-support-opening.login-support-open .login-support-page {
    transform: scale(1);
}

.login-support-overlay.login-support-closing .login-support-page {
    transform: scale(.94);
}

@media (prefers-reduced-motion: reduce) {
    .login-support-overlay,
    .login-support-overlay .login-support-page {
        transition-duration: 0ms !important;
    }
}
/* END LOGIN_CUSTOMER_CARE_ZOOM_V1 */
\n


/* LOGIN_CHAT_SPEAKER_BUTTON_V1 */
.login-support-speak {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    padding: 7px 12px;
    border: 1px solid #51417f;
    border-radius: 20px;
    background: #211b38;
    color: #d8ccff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.login-support-speak:active,
.login-support-speak.is-speaking {
    background: #41316b;
    border-color: #9c83f5;
    color: #ffffff;
}

.login-support-speak:focus-visible {
    outline: 2px solid #b7a3ff;
    outline-offset: 3px;
}

.login-support-speak:disabled {
    opacity: 0.6;
    cursor: default;
}
/* END LOGIN_CHAT_SPEAKER_BUTTON_V1 */


/* WESTFORD UNION BANK — LOGIN LIVE CHAT CUSTOMER CARE DARK THEME V2 */
.login-support-overlay:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: #000000 !important;
    color: #F8F7FF !important;
    background-image: none !important;
}

.login-support-overlay .login-support-page {
    width: 100% !important;
    max-width: 480px !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: calc(12px + env(safe-area-inset-top)) 14px
             calc(12px + env(safe-area-inset-bottom)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    overflow: hidden !important;
    background: #000000 !important;
    color: #F8F7FF !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* Header matches Customer Care's compact dark header. */
.login-support-overlay .login-support-header {
    flex: 0 0 auto !important;
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 2px 0 14px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #302C38 !important;
    box-shadow: none !important;
}

.login-support-overlay .login-support-back {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #49375F !important;
    border-radius: 11px !important;
    background: #211A2D !important;
    color: #C4B5FD !important;
    font-size: 27px !important;
    line-height: 1 !important;
}

.login-support-overlay .login-support-header > div > span {
    display: block !important;
    margin-bottom: 3px !important;
    color: #B5A2D5 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
}

.login-support-overlay .login-support-header h1 {
    margin: 0 !important;
    color: #F8F7FF !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: -.4px !important;
}

.login-support-overlay .login-support-status {
    padding: 7px 9px !important;
    border: 1px solid #49375F !important;
    border-radius: 10px !important;
    background: #211A2D !important;
    color: #D8C9F4 !important;
    font-size: 10px !important;
}

/* Conversation area. Only messages scroll. */
.login-support-overlay .login-support-messages {
    flex: 1 1 auto !important;
    min-height: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 4px 1px 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: transparent !important;
    scrollbar-width: thin !important;
    scrollbar-color: #49375F #000000 !important;
}

.login-support-overlay .login-support-message {
    max-width: 92% !important;
    padding: 13px !important;
    border: 1px solid #302C38 !important;
    border-radius: 15px !important;
    background: #141318 !important;
    color: #F8F7FF !important;
    box-shadow: none !important;
}

.login-support-overlay .login-support-agent {
    align-self: flex-start !important;
    background: #141318 !important;
    border-color: #302C38 !important;
}

.login-support-overlay .login-support-customer {
    align-self: flex-end !important;
    background: #211A2D !important;
    border-color: #49375F !important;
}

.login-support-overlay .login-support-sender {
    display: block !important;
    margin-bottom: 7px !important;
    color: #C4B5FD !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.login-support-overlay .login-support-message p {
    margin: 0 !important;
    color: #F0EDF7 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere !important;
}

.login-support-overlay .login-support-message time {
    display: block !important;
    margin-top: 9px !important;
    color: #A59CAF !important;
    font-size: 10px !important;
    text-align: right !important;
}

/* Speaker / Listen button: same restrained purple palette. */
.login-support-overlay .login-support-speak {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 32px !important;
    margin-top: 10px !important;
    padding: 7px 11px !important;
    border: 1px solid #49375F !important;
    border-radius: 10px !important;
    background: #211A2D !important;
    color: #D8C9F4 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.login-support-overlay .login-support-speak span[aria-hidden="true"] {
    color: #C4B5FD !important;
}

.login-support-overlay .login-support-speak.is-speaking,
.login-support-overlay .login-support-speak[aria-pressed="true"] {
    background: #352448 !important;
    border-color: #8B6BB5 !important;
    color: #FFFFFF !important;
}

/* FAQ panel matches the Customer Care dark cards. */
.login-support-overlay .login-support-faq {
    flex: 0 0 auto !important;
    max-height: 27% !important;
    overflow-y: auto !important;
    padding: 12px !important;
    border: 1px solid #302C38 !important;
    border-radius: 15px !important;
    background: #111014 !important;
    box-shadow: none !important;
}

.login-support-overlay .login-support-faq h2 {
    margin: 0 0 10px !important;
    color: #F8F7FF !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.login-support-overlay .login-support-questions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

.login-support-overlay .login-support-questions button {
    min-height: 34px !important;
    padding: 8px 10px !important;
    border: 1px solid #49375F !important;
    border-radius: 10px !important;
    background: #211A2D !important;
    color: #D8C9F4 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    box-shadow: none !important;
}

.login-support-overlay .login-support-questions button:active {
    background: #352448 !important;
    border-color: #8B6BB5 !important;
}

/* Composer stays accessible at the bottom. */
.login-support-overlay .login-support-compose {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 11px !important;
    border: 1px solid #302C38 !important;
    border-radius: 15px !important;
    background: #111014 !important;
    box-shadow: none !important;
}

.login-support-overlay .login-support-compose label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #BDB7C9 !important;
    font-size: 11px !important;
}

.login-support-overlay .login-support-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.login-support-overlay .login-support-input-row input {
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
    min-height: 43px !important;
    padding: 10px 12px !important;
    border: 1px solid #393342 !important;
    border-radius: 11px !important;
    outline: none !important;
    background: #08080A !important;
    color: #F8F7FF !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.login-support-overlay .login-support-input-row input::placeholder {
    color: #8F879B !important;
    opacity: 1 !important;
}

.login-support-overlay .login-support-input-row input:focus {
    border-color: #8B6BB5 !important;
}

.login-support-overlay .login-support-input-row > button {
    flex: 0 0 43px !important;
    width: 43px !important;
    height: 43px !important;
    padding: 0 !important;
    border: 1px solid #8B6BB5 !important;
    border-radius: 12px !important;
    background: #352448 !important;
    color: #FFFFFF !important;
    font-size: 20px !important;
    box-shadow: none !important;
}

.login-support-overlay .login-support-input-row > button:disabled {
    opacity: .55 !important;
}

.login-support-overlay .login-support-notice {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 3px !important;
    color: #A59CAF !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.login-support-overlay .login-support-typing span {
    background: #C4B5FD !important;
}

@media (max-width: 380px) {
    .login-support-overlay .login-support-page {
        padding-right: 11px !important;
        padding-left: 11px !important;
        gap: 9px !important;
    }

    .login-support-overlay .login-support-status {
        padding: 6px 7px !important;
        font-size: 9px !important;
    }

    .login-support-overlay .login-support-faq {
        padding: 10px !important;
    }

    .login-support-overlay .login-support-questions {
        gap: 6px !important;
    }

    .login-support-overlay .login-support-questions button {
        padding: 7px 8px !important;
        font-size: 10px !important;
    }
}

/* END WESTFORD UNION BANK — LOGIN LIVE CHAT CUSTOMER CARE DARK THEME V2 */



/* LOGIN SUPPORT — MATCH ORIGINAL CUSTOMER LIVE CHAT DESIGN V1 */
.login-support-overlay:not([hidden]) {
    background: #000 !important;
    color: #F5F5F7 !important;
}

.login-support-overlay .login-support-page {
    width: 100% !important;
    max-width: 520px !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: max(8px, env(safe-area-inset-top)) 14px
             max(8px, env(safe-area-inset-bottom)) !important;
    gap: 0 !important;
    background: #000 !important;
    color: #F5F5F7 !important;
}

.login-support-overlay .login-support-header {
    flex: 0 0 auto !important;
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 4px 0 10px !important;
    border-bottom: 1px solid #38383A !important;
}

.login-support-overlay .login-support-back {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #38383A !important;
    border-radius: 50% !important;
    background: #1C1C1E !important;
    color: #F5F5F7 !important;
}

.login-support-overlay .login-support-header > div > span {
    color: #A1A1AA !important;
    font-size: 9px !important;
    letter-spacing: 1px !important;
}

.login-support-overlay .login-support-header h1 {
    margin-top: 2px !important;
    color: #F5F5F7 !important;
    font-size: 20px !important;
}

.login-support-overlay .login-support-status {
    margin-left: auto !important;
    padding: 5px 9px !important;
    border: 1px solid #38383A !important;
    border-radius: 20px !important;
    background: #1C1C1E !important;
    color: #AEAEB2 !important;
    font-size: 10px !important;
    white-space: nowrap !important;
}

.login-support-overlay .login-support-messages {
    flex: 1 1 auto !important;
    min-height: 80px !important;
    gap: 12px !important;
    padding: 16px 2px 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #000 !important;
    scrollbar-color: #48484A transparent !important;
}

.login-support-overlay .login-support-message {
    width: fit-content !important;
    max-width: 86% !important;
    padding: 10px 12px 7px !important;
    border: 1px solid #38383A !important;
    border-radius: 15px !important;
    overflow-wrap: anywhere !important;
}

.login-support-overlay .login-support-agent {
    align-self: flex-start !important;
    background: #1C1C1E !important;
    border-color: #38383A !important;
    border-bottom-left-radius: 5px !important;
}

.login-support-overlay .login-support-customer {
    align-self: flex-end !important;
    background: #343044 !important;
    border-color: #514766 !important;
    border-bottom-right-radius: 5px !important;
}

.login-support-overlay .login-support-sender {
    margin-bottom: 5px !important;
    color: #C5B5F2 !important;
    font-size: 10px !important;
}

.login-support-overlay .login-support-message p {
    color: #F5F5F7 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    white-space: pre-wrap !important;
}

.login-support-overlay .login-support-message time {
    align-self: flex-end !important;
    margin-top: 5px !important;
    color: #AEAEB2 !important;
    font-size: 9px !important;
}

.login-support-overlay .login-support-speak {
    min-height: 32px !important;
    margin-top: 8px !important;
    padding: 6px 11px !important;
    border: 1px solid #484052 !important;
    border-radius: 18px !important;
    background: #24202B !important;
    color: #E6DDF8 !important;
    font-size: 11px !important;
}

.login-support-overlay .login-support-speak.is-speaking,
.login-support-overlay .login-support-speak[aria-pressed="true"] {
    background: #393044 !important;
    border-color: #8D75C4 !important;
    color: #FFF !important;
}

.login-support-overlay .login-support-faq {
    flex: 0 0 auto !important;
    max-height: 24% !important;
    overflow: hidden !important;
    padding: 9px 0 10px !important;
    border: 0 !important;
    border-top: 1px solid #38383A !important;
    border-radius: 0 !important;
    background: #000 !important;
}

.login-support-overlay .login-support-faq h2 {
    margin: 0 0 8px !important;
    color: #AEAEB2 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.login-support-overlay .login-support-questions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 1px 1px 5px !important;
    scrollbar-width: none !important;
}

.login-support-overlay .login-support-questions::-webkit-scrollbar {
    display: none !important;
}

.login-support-overlay .login-support-questions button {
    flex: 0 0 auto !important;
    max-width: 220px !important;
    min-height: 34px !important;
    padding: 8px 11px !important;
    border: 1px solid #484052 !important;
    border-radius: 18px !important;
    background: #24202B !important;
    color: #E6DDF8 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

.login-support-overlay .login-support-questions button:active {
    background: #393044 !important;
}

.login-support-overlay .login-support-compose {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px 0 max(3px, env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid #38383A !important;
    border-radius: 0 !important;
    background: #000 !important;
}

.login-support-overlay .login-support-compose label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.login-support-overlay .login-support-input-row {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
}

.login-support-overlay .login-support-input-row input {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 120px !important;
    padding: 10px 14px !important;
    border: 1px solid #38383A !important;
    border-radius: 22px !important;
    background: #1C1C1E !important;
    color: #F5F5F7 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 22px !important;
}

.login-support-overlay .login-support-input-row input::placeholder {
    color: #8E8E93 !important;
}

.login-support-overlay .login-support-input-row input:focus {
    border-color: #8D75C4 !important;
}

.login-support-overlay .login-support-input-row > button {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #7655B7 !important;
    color: #FFF !important;
    font-size: 19px !important;
}

.login-support-overlay .login-support-notice {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 4px 0 0 !important;
    color: #8E8E93 !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

@media (max-width: 380px) {
    .login-support-overlay .login-support-page {
        padding-right: 11px !important;
        padding-left: 11px !important;
    }

    .login-support-overlay .login-support-status {
        padding: 5px 7px !important;
        font-size: 9px !important;
    }
}
/* END LOGIN SUPPORT — MATCH ORIGINAL CUSTOMER LIVE CHAT DESIGN V1 */
