.psa-customer-auth {
    --auth-blue: var(--psa-blue, #073b9a);
    --auth-cyan: var(--psa-cyan, #009fe3);
    --auth-green: var(--psa-green, #18a83d);
    --auth-orange: var(--psa-orange, #f97300);
    --auth-navy: var(--psa-navy, #061b4b);
    background:
        radial-gradient(circle at 4% 14%, rgba(0, 159, 227, 0.1), transparent 24%),
        radial-gradient(circle at 96% 86%, rgba(24, 168, 61, 0.08), transparent 26%),
        #f4f7fb;
    color: #10213d;
    padding: clamp(2rem, 4vw, 4.5rem) 0;
}

body:has(.psa-customer-auth) .navbar-stuck-menu {
    background: #f7f9fc !important;
    border-bottom: 1px solid #e4eaf2;
    border-top: 1px solid #edf1f6;
}

body:has(.psa-customer-auth) .navbar-stuck-menu .nav-link,
body:has(.psa-customer-auth) .navbar-stuck-menu .nav-item button {
    color: #26354b !important;
}

body:has(.psa-customer-auth) .navbar-stuck-menu .__mega-nav {
    background: transparent !important;
}

body:has(.psa-customer-auth) .navbar-stuck-menu .category-menu-toggle-btn {
    background: linear-gradient(135deg, var(--psa-blue, #073b9a), #075aa5) !important;
    border-radius: 11px;
    color: #ffffff !important;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 0.9rem !important;
}

body:has(.psa-customer-auth) .search_button,
body:has(.psa-customer-auth) .search_button .input-group-text {
    background: var(--psa-blue, #073b9a) !important;
    border-color: var(--psa-blue, #073b9a) !important;
}

body:has(.psa-customer-auth) .navbar-tool-label {
    background: var(--psa-orange, #f97300) !important;
}

.psa-customer-auth__shell {
    background: #ffffff;
    border: 1px solid #dfe7f2;
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(4, 28, 74, 0.13);
    display: grid;
    grid-template-columns: minmax(340px, 0.82fr) minmax(500px, 1.18fr);
    min-height: 660px;
    overflow: hidden;
}

.psa-customer-auth__story {
    background: linear-gradient(145deg, #041638 0%, #06357f 62%, #075ba2 100%);
    color: #ffffff;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    position: relative;
}

.psa-customer-auth__story::before,
.psa-customer-auth__story::after {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.psa-customer-auth__story::before {
    height: 380px;
    right: -190px;
    top: -150px;
    width: 380px;
}

.psa-customer-auth__story::after {
    bottom: -210px;
    height: 350px;
    left: -140px;
    width: 350px;
}

.psa-customer-auth__story-image {
    background:
        linear-gradient(180deg, rgba(4, 22, 56, 0.42), rgba(4, 22, 56, 0.88)),
        url("../images/auth-market-hero.webp") center / cover no-repeat;
    inset: 0;
    opacity: 0.28;
    position: absolute;
}

.psa-customer-auth__story-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 540px;
    position: relative;
    z-index: 1;
}

.psa-customer-auth__brand {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(1, 12, 41, 0.22);
    display: inline-flex;
    flex-direction: column;
    max-width: 245px;
    overflow: hidden;
    padding: 0.55rem 0.7rem 0;
}

.psa-customer-auth__brand img {
    height: auto;
    max-width: 100%;
}

.psa-customer-auth__brand > span {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 4px;
    margin: 0.4rem -0.7rem 0;
}

.psa-customer-auth__brand i:nth-child(1) { background: var(--auth-blue); }
.psa-customer-auth__brand i:nth-child(2) { background: var(--auth-cyan); }
.psa-customer-auth__brand i:nth-child(3) { background: var(--auth-green); }
.psa-customer-auth__brand i:nth-child(4) { background: var(--auth-orange); }

.psa-customer-auth__message {
    margin: auto 0;
    padding: 3rem 0;
}

.psa-customer-auth__eyebrow {
    color: #8de8ff;
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 1.1rem;
}

.psa-customer-auth__message h1 {
    color: #ffffff;
    font-size: clamp(2.35rem, 4vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
    margin: 0;
    max-width: 500px;
}

.psa-customer-auth__message p {
    color: rgba(229, 240, 255, 0.76);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 1.4rem 0 0;
    max-width: 470px;
}

.psa-customer-auth__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.psa-customer-auth__proof span {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    font-size: 0.7rem;
    gap: 0.42rem;
    padding: 0.55rem 0.7rem;
}

.psa-customer-auth__proof i { color: #72e58f; }

.psa-customer-auth__panel {
    align-items: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 159, 227, 0.08), transparent 30%),
        #f8fafc;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.psa-customer-auth__card.login-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dfe7f2;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(5, 31, 78, 0.09);
    max-width: 540px;
    padding: clamp(1.6rem, 3vw, 2.6rem);
    width: 100%;
}

.psa-customer-auth__card--wide.login-card,
.psa-customer-auth__card--register.login-card {
    max-width: 760px;
}

.psa-customer-auth__card-header {
    margin-bottom: 1.8rem;
}

.psa-customer-auth__card-header > span {
    color: var(--auth-blue);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.75rem;
}

.psa-customer-auth__card-header h2 {
    color: var(--auth-navy);
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin: 0;
}

.psa-customer-auth__card-header p {
    color: #68758b;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0.7rem 0 0;
}

.psa-customer-auth .form-group { margin-bottom: 1.15rem; }

.psa-customer-auth .form-label {
    color: #24344e;
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    margin-bottom: 0.5rem;
}

.psa-customer-auth .form-control {
    background: #fbfcfe;
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    box-shadow: none;
    color: #10213d;
    min-height: 52px;
    padding: 0.75rem 0.9rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.psa-customer-auth .form-control:hover { border-color: #b4c3d8; }

.psa-customer-auth .form-control:focus {
    background: #ffffff;
    border-color: var(--auth-cyan);
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.13);
}

.psa-customer-auth .form-control::placeholder { color: #9aa6b8; }
.psa-customer-auth .input-required-icon { color: var(--auth-orange); }

.psa-customer-auth .btn--primary {
    background: linear-gradient(135deg, var(--auth-blue), #075aa5) !important;
    border: 0 !important;
    border-radius: 12px;
    box-shadow: 0 13px 28px rgba(7, 59, 154, 0.22);
    font-weight: 750;
    min-height: 52px;
}

.psa-customer-auth .btn--primary:hover,
.psa-customer-auth .btn--primary:focus-visible {
    background: linear-gradient(135deg, #052d78, #064982) !important;
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.16), 0 15px 30px rgba(7, 59, 154, 0.25);
}

.psa-customer-auth a.text-primary,
.psa-customer-auth .text-primary { color: var(--auth-blue) !important; }

.psa-customer-auth .custom-control-label { color: #5f6d83; font-size: 0.78rem; }
.psa-customer-auth .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--auth-green); border-color: var(--auth-green); }

.psa-customer-auth .default-captcha-container { margin-bottom: 1rem; }
.psa-customer-auth .default-captcha-container .form-control { min-height: 50px; }

.psa-customer-auth .or-sign-in-with {
    color: #8a96a8;
    font-size: 0.72rem;
}

.psa-customer-auth .social-media-login-btn {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    min-height: 50px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.psa-customer-auth .social-media-login-btn:hover,
.psa-customer-auth .social-media-login-btn:focus-visible {
    border-color: #8fb7dc;
    box-shadow: 0 10px 24px rgba(5, 31, 78, 0.09);
    transform: translateY(-1px);
}

.psa-customer-auth--register .psa-customer-auth__shell {
    grid-template-columns: minmax(320px, 0.72fr) minmax(620px, 1.28fr);
}

.psa-customer-auth--register .psa-customer-auth__panel { padding-inline: clamp(1.5rem, 3vw, 3rem); }
.psa-customer-auth--register #customer-register-form > .row { row-gap: 0.1rem; }
.psa-customer-auth--register .iti { width: 100%; }

.psa-customer-auth--register #sign-up:disabled {
    background: #9baccc !important;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.psa-customer-auth--verification .psa-customer-auth__shell {
    grid-template-columns: minmax(340px, 0.9fr) minmax(500px, 1.1fr);
}

.psa-otp-card__header {
    margin-bottom: 1.25rem;
    padding-right: 4.25rem;
    position: relative;
}

.psa-otp-card__icon {
    align-items: center;
    background: linear-gradient(145deg, rgba(24, 168, 61, 0.13), rgba(0, 159, 227, 0.12));
    border: 1px solid rgba(24, 168, 61, 0.18);
    border-radius: 16px;
    color: var(--auth-green);
    display: flex;
    font-size: 1.45rem;
    height: 54px;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 54px;
}

.psa-otp-timer {
    align-items: center;
    background: #f0f6ff;
    border: 1px solid #d8e7fb;
    border-radius: 12px;
    color: #52627a;
    display: flex;
    font-size: 0.76rem;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding: 0.72rem 0.85rem;
}

.psa-otp-timer i { color: var(--auth-blue); }
.psa-otp-timer strong { color: var(--auth-blue); margin-left: auto; }

.psa-otp-security {
    margin-top: 0.2rem;
}

.psa-otp-security .default-captcha-container {
    margin-bottom: 0;
}

.psa-otp-code-label {
    color: #24344e;
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    margin-bottom: 0.65rem;
}

.psa-otp-fields {
    direction: ltr;
    gap: clamp(0.35rem, 1vw, 0.65rem);
    margin-bottom: 1.15rem;
}

.psa-customer-auth .psa-otp-fields .otp-field {
    background: #fbfcfe;
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    color: var(--auth-navy);
    flex: 1 1 0;
    font-size: 1.35rem;
    font-weight: 800;
    height: 58px;
    max-width: 58px;
    min-width: 0;
    text-align: center;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    width: auto !important;
}

.psa-customer-auth .psa-otp-fields .otp-field:focus {
    background: #ffffff;
    border-color: var(--auth-cyan);
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.13);
    outline: none;
    transform: translateY(-1px);
}

.psa-otp-actions {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.psa-otp-resend {
    background: #ffffff;
    border: 1px solid #d5e0ee;
    border-radius: 12px;
    color: var(--auth-blue);
    font-weight: 750;
    min-height: 50px;
}

.psa-otp-resend:hover,
.psa-otp-resend:focus-visible {
    background: #f3f7fc;
    border-color: #8fb7dc;
    color: #052d78;
}

.psa-otp-help {
    color: #7b8798;
    font-size: 0.72rem;
    line-height: 1.55;
    margin: 1rem auto 0;
    max-width: 440px;
    text-align: center;
}

.psa-otp-success { padding: 1rem 0; }

.psa-otp-success__icon {
    align-items: center;
    background: rgba(24, 168, 61, 0.12);
    border-radius: 50%;
    color: var(--auth-green);
    display: inline-flex;
    font-size: 2rem;
    height: 76px;
    justify-content: center;
    margin-bottom: 1.4rem;
    width: 76px;
}

.psa-otp-success > span {
    color: var(--auth-blue);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.psa-otp-success h2 {
    color: var(--auth-navy);
    font-size: 2rem;
    font-weight: 800;
    margin: 0.65rem 0;
}

.psa-otp-success p {
    color: #68758b;
    font-size: 0.86rem;
    line-height: 1.65;
    margin: 0 auto 1.5rem;
    max-width: 420px;
}

@media (max-width: 1100px) {
    .psa-customer-auth__shell,
    .psa-customer-auth--register .psa-customer-auth__shell,
    .psa-customer-auth--verification .psa-customer-auth__shell {
        grid-template-columns: minmax(290px, 0.68fr) minmax(520px, 1.32fr);
    }

    .psa-customer-auth__story { padding: 2rem; }
    .psa-customer-auth__proof { display: none; }
}

@media (max-width: 900px) {
    .psa-customer-auth__shell,
    .psa-customer-auth--register .psa-customer-auth__shell,
    .psa-customer-auth--verification .psa-customer-auth__shell { grid-template-columns: 1fr; }

    .psa-customer-auth__story { min-height: auto; padding: 1.5rem; }
    .psa-customer-auth__story-content { min-height: auto; }
    .psa-customer-auth__brand { max-width: 190px; }
    .psa-customer-auth__message { padding: 2.25rem 0 0.5rem; }
    .psa-customer-auth__message h1 { font-size: clamp(2rem, 7vw, 3rem); }
    .psa-customer-auth__message p { margin-top: 0.9rem; }
}

@media (max-width: 575px) {
    .psa-customer-auth { padding: 1rem 0 2rem; }
    .psa-customer-auth > .container { padding-inline: 12px; }
    .psa-customer-auth__shell { border-radius: 22px; }
    .psa-customer-auth__story { padding: 1.2rem; }
    .psa-customer-auth__brand { max-width: 165px; }
    .psa-customer-auth__message { padding-top: 1.7rem; }
    .psa-customer-auth__message p { display: none; }
    .psa-customer-auth__panel { padding: 0.75rem; }
    .psa-customer-auth__card.login-card { border-radius: 18px; padding: 1.35rem; }
    .psa-customer-auth__card-header { margin-bottom: 1.4rem; }
    .psa-customer-auth__card-header h2 { font-size: 1.8rem; }
    .psa-customer-auth .or-sign-in-with { display: none; }
    .psa-otp-card__header { padding-right: 0; }
    .psa-otp-card__icon { display: none; }
    .psa-customer-auth .psa-otp-fields .otp-field { border-radius: 9px; font-size: 1.1rem; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .psa-customer-auth *,
    .psa-customer-auth *::before,
    .psa-customer-auth *::after { transition: none !important; }
}
