* {
    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;
    }
}
