/* ==========================================================================
   BankAmooz Auth Clean Final
   Desktop: below site header, no overlap
   Mobile: dedicated auth web-app, no main header/footer, no logo, no benefits
   ========================================================================== */

:root {
    --ba-primary: #002D5A;
    --ba-primary-2: #003B78;
    --ba-primary-3: #0057A8;
    --ba-primary-rgb: 0, 45, 90;

    --ba-accent: #F26522;
    --ba-accent-2: #FF7A1A;
    --ba-accent-rgb: 242, 101, 34;

    --ba-info: #00AEEF;
    --ba-info-rgb: 0, 174, 239;

    --ba-success: #2E9D69;
    --ba-danger: #D64545;

    --ba-heading: #092E57;
    --ba-text: #243044;
    --ba-muted: #708096;
    --ba-muted-2: #9AA8B8;

    --ba-border: rgba(217, 227, 234, 0.92);
    --ba-border-soft: rgba(217, 227, 234, 0.55);

    --ba-radius-2xl: 32px;
    --ba-radius-xl: 26px;
    --ba-radius-lg: 20px;
    --ba-radius-md: 15px;

    --ba-shadow-card: 0 26px 70px rgba(var(--ba-primary-rgb), 0.13);
    --ba-shadow-soft: 0 14px 32px rgba(var(--ba-primary-rgb), 0.08);
    --ba-shadow-accent: 0 18px 38px rgba(var(--ba-accent-rgb), 0.30);

    --ba-focus: 0 0 0 4px rgba(var(--ba-info-rgb), 0.17);
    --ba-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

.ba-auth-pro,
.ba-auth-pro *,
.ba-auth-pro *::before,
.ba-auth-pro *::after {
    box-sizing: border-box;
}

.ba-auth-pro {
    direction: rtl;
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    min-height: calc(100vh - 260px);
    margin-top: 118px;
    padding: 34px 16px 48px;

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

    color: var(--ba-text);

    background:
        radial-gradient(circle at 8% 15%, rgba(var(--ba-info-rgb), 0.11), transparent 26%),
        radial-gradient(circle at 88% 78%, rgba(var(--ba-accent-rgb), 0.07), transparent 30%),
        linear-gradient(180deg, #F8FCFF 0%, #FFFFFF 48%, #EEF6FB 100%);
}

.ba-auth-pro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;

    opacity: 0.42;

    background-image:
        radial-gradient(circle at 18px 18px, rgba(var(--ba-primary-rgb), 0.055) 2px, transparent 2.3px);
    background-size: 34px 34px;

    mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 72%);
    pointer-events: none;
}

.ba-auth-pro::after {
    content: "";
    position: absolute;
    inset-inline: -18%;
    bottom: -8%;
    z-index: -2;

    height: 34%;

    background:
        radial-gradient(circle at 20% 88%, rgba(var(--ba-info-rgb), 0.13), transparent 30%),
        linear-gradient(135deg, var(--ba-primary) 0%, var(--ba-primary-2) 54%, var(--ba-primary-3) 100%);

    clip-path: ellipse(78% 58% at 50% 100%);
    pointer-events: none;
}

.ba-auth-pro img,
.ba-auth-pro svg {
    max-width: 100%;
}

.ba-auth-pro button,
.ba-auth-pro input,
.ba-auth-pro select,
.ba-auth-pro textarea {
    font-family: inherit;
}

.ba-auth-pro__shell {
    width: min(1220px, 100%);
    margin-inline: auto;
}

/* ==========================================================================
   Desktop: keep site header visible and prevent auth from going under it
   ========================================================================== */

@media (min-width: 992px) {
    body.ba-auth-page #appHeaderArea,
    body:has(.ba-auth-pro) #appHeaderArea {
        position: relative !important;
        z-index: 100 !important;
    }

    body.ba-auth-page .ba-auth-pro,
    body:has(.ba-auth-pro) .ba-auth-pro {
        margin-top: 112px !important;
        padding-top: 38px !important;
    }

    body.ba-auth-page #themeHeaderSticky,
    body:has(.ba-auth-pro) #themeHeaderSticky,
    body.ba-auth-page .theme-header-1__main,
    body:has(.ba-auth-pro) .theme-header-1__main {
        z-index: 120 !important;
    }
}

/* ==========================================================================
   Layout Desktop
   ========================================================================== */

.ba-auth-pro__layout {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(410px, 520px);
    grid-template-areas: "hero card";
    gap: clamp(34px, 4vw, 70px);
    align-items: center;

    min-height: 650px;

    direction: ltr;

    animation: baAuthIn 0.65s var(--ba-ease) both;
}

.ba-auth-pro__hero,
.ba-auth-pro__card,
.ba-auth-pro__trust {
    direction: rtl;
}

@keyframes baAuthIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.ba-auth-pro__hero {
    grid-area: hero;
    position: relative;
    z-index: 2;

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

    min-width: 0;
    padding: 0;
}

.ba-auth-pro__hero-inner {
    width: 100%;
    text-align: center;
}

.ba-auth-pro__headline {
    position: relative;
    z-index: 3;
}

.ba-auth-pro__eyebrow {
    color: var(--ba-primary);

    font-size: clamp(32px, 3.1vw, 50px);
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.ba-auth-pro__title {
    margin: 6px 0 14px;

    color: var(--ba-primary);

    font-size: clamp(38px, 4vw, 62px);
    font-weight: 950;
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.ba-auth-pro__title span {
    color: var(--ba-accent);
}

.ba-auth-pro__subtitle {
    max-width: 520px;
    margin: 0 auto 20px;

    color: #657489;

    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
    line-height: 2;
}

.ba-auth-pro__visual {
    position: relative;
    z-index: 2;

    width: min(490px, 92%);
    margin: 0 auto;
}

.ba-auth-pro__visual::before {
    content: "";
    position: absolute;
    inset: 15% 1% 8%;
    z-index: 0;

    border-radius: 50%;

    background:
        radial-gradient(circle at 50% 45%, rgba(var(--ba-info-rgb), 0.12), transparent 44%),
        linear-gradient(135deg, rgba(var(--ba-primary-rgb), 0.055), transparent);
}

.ba-auth-pro__visual::after {
    content: "";
    position: absolute;
    inset-inline: 18%;
    bottom: 6%;
    z-index: 0;

    height: 18px;
    border-radius: 999px;

    background: rgba(var(--ba-primary-rgb), 0.16);
    filter: blur(12px);

    animation: baAuthShadow 5.5s ease-in-out infinite;
}

.ba-auth-pro__visual img {
    position: relative;
    z-index: 1;

    display: block;
    width: 100%;
    height: auto;

    object-fit: contain;

    animation: baAuthFloat 5.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes baAuthFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes baAuthShadow {
    0%, 100% {
        opacity: 0.58;
        transform: scale(1);
    }

    50% {
        opacity: 0.34;
        transform: scale(0.86);
    }
}

/* ==========================================================================
   Benefits Desktop
   ========================================================================== */

.ba-auth-pro__benefits {
    position: relative;
    z-index: 4;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;

    width: min(620px, 100%);
    margin: -4px auto 0;
    padding: 16px 14px;

    border: 1px solid rgba(217, 228, 236, 0.86);
    border-radius: 24px;

    background: rgba(255,255,255,0.92);
    box-shadow: var(--ba-shadow-soft);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ba-auth-pro__benefit {
    min-width: 0;
    padding: 0 12px;

    text-align: center;

    border-inline-start: 1px solid var(--ba-border-soft);

    transition: transform 0.18s ease;
}

.ba-auth-pro__benefit:first-child {
    border-inline-start: 0;
}

.ba-auth-pro__benefit:hover {
    transform: translateY(-3px);
}

.ba-auth-pro__benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-bottom: 8px;

    border-radius: 50%;
}

.ba-auth-pro__benefit-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.ba-auth-pro__benefit-icon--secure {
    color: #0C3E76;
    background: #EAF3FB;
}

.ba-auth-pro__benefit-icon--fast {
    color: var(--ba-accent);
    background: #FFF1E8;
}

.ba-auth-pro__benefit-icon--edu {
    color: #133F7A;
    background: #EDF4FB;
}

.ba-auth-pro__benefit-icon--growth {
    color: var(--ba-success);
    background: #ECF8F1;
}

.ba-auth-pro__benefit strong {
    display: block;

    color: var(--ba-heading);

    font-size: 13px;
    font-weight: 950;
    line-height: 1.7;
}

.ba-auth-pro__benefit small {
    display: block;

    color: var(--ba-muted);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.8;
}

/* ==========================================================================
   Card
   ========================================================================== */

.ba-auth-pro__card {
    grid-area: card;
    position: relative;
    z-index: 5;

    align-self: center;

    width: 100%;
    min-height: 620px;
    padding: clamp(28px, 3vw, 42px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 1px solid rgba(217, 228, 236, 0.90);
    border-radius: var(--ba-radius-2xl);

    background:
        radial-gradient(circle at 12% 10%, rgba(var(--ba-accent-rgb), 0.05), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));

    box-shadow: var(--ba-shadow-card);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ba-auth-pro__card form,
.ba-auth-pro__card .ajax-auth-form,
.ba-auth-pro__card .ba-auth-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ba-auth-pro__card .pl-16,
.ba-auth-pro__card .pt-16,
.ba-auth-pro__card .pr-16,
.ba-auth-pro__card .pb-16,
.ba-auth-pro__card .p-16 {
    padding: 0 !important;
}

.ba-auth-pro__card .font-16.font-weight-bold {
    display: none !important;
}

.ba-auth-form-header {
    margin-bottom: 18px;
    text-align: center;
}

.ba-auth-form-header h2,
.ba-auth-pro__card h1,
.ba-auth-pro__card h2,
.ba-auth-pro__card .font-24 {
    margin: 0 0 8px !important;

    text-align: center;
    color: var(--ba-heading);

    font-size: clamp(24px, 2.2vw, 32px) !important;
    font-weight: 950;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.ba-auth-form-header p {
    margin: 0;

    color: var(--ba-muted);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.ba-auth-pro__card h1::after,
.ba-auth-pro__card h2::after,
.ba-auth-pro__card .font-24::after {
    content: none !important;
    display: none !important;
}

.ba-auth-pro__micro-badge {
    display: none !important;
}

/* ==========================================================================
   Method Switch
   ========================================================================== */

.ba-auth-pro__card .d-flex.align-items-center.gap-4.p-4.rounded-12.border-gray-300,
.ba-auth-pro__card .ba-auth-methods {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;

    width: 100%;
    min-height: 62px;
    margin: 22px 0 22px !important;
    padding: 0 !important;

    overflow: hidden;

    border: 1px solid var(--ba-border) !important;
    border-radius: 15px !important;

    background: #FFFFFF !important;
    box-shadow: 0 10px 26px rgba(var(--ba-primary-rgb), 0.05);
}

.ba-auth-pro__card .auth-register-method-item,
.ba-auth-pro__card .ba-auth-method-item {
    position: relative;
    min-width: 0;
}

.ba-auth-pro__card .auth-register-method-item input,
.ba-auth-pro__card .ba-auth-method-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ba-auth-pro__card .auth-register-method-item label,
.ba-auth-pro__card .ba-auth-method-label {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 0 12px;

    border-radius: 0;
    background: transparent;
    color: var(--ba-heading);

    font-size: 14px;
    font-weight: 950;
    line-height: 1.5;
    text-align: center;

    cursor: pointer;
    user-select: none;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.ba-auth-pro__card .auth-register-method-item + .auth-register-method-item label,
.ba-auth-pro__card .ba-auth-method-item + .ba-auth-method-item .ba-auth-method-label {
    border-inline-start: 1px solid var(--ba-border);
}

.ba-auth-pro__card .auth-register-method-item label:hover,
.ba-auth-pro__card .ba-auth-method-label:hover {
    background: rgba(var(--ba-primary-rgb), 0.04);
}

.ba-auth-pro__card .auth-register-method-item input:checked + label,
.ba-auth-pro__card .ba-auth-method-radio:checked + .ba-auth-method-label {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--ba-primary-2), var(--ba-primary));
}

/* ==========================================================================
   Fields
   ========================================================================== */

.ba-auth-pro__card .form-group,
.ba-auth-pro__card .position-relative.form-group {
    position: relative;
    margin-bottom: 15px !important;
}

.ba-auth-pro__card label,
.ba-auth-pro__card .input-label,
.ba-auth-pro__card .form-group-label {
    display: block;

    margin-bottom: 7px;

    color: var(--ba-heading);

    font-size: 13px;
    font-weight: 950;
    line-height: 1.7;
    text-align: right;
}

.ba-auth-pro__card .form-control,
.ba-auth-pro__card input[type="text"],
.ba-auth-pro__card input[type="email"],
.ba-auth-pro__card input[type="tel"],
.ba-auth-pro__card input[type="password"],
.ba-auth-pro__card input[type="number"],
.ba-auth-pro__card select,
.ba-auth-pro__card textarea {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;

    border: 1px solid var(--ba-border) !important;
    border-radius: 14px !important;

    background: #FFFFFF !important;
    color: var(--ba-text) !important;

    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;

    outline: none !important;
    box-shadow: none !important;

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

.ba-auth-pro__card .form-control:hover,
.ba-auth-pro__card input:hover,
.ba-auth-pro__card select:hover,
.ba-auth-pro__card textarea:hover {
    border-color: rgba(var(--ba-primary-rgb), 0.25) !important;
}

.ba-auth-pro__card .form-control:focus,
.ba-auth-pro__card input:focus,
.ba-auth-pro__card select:focus,
.ba-auth-pro__card textarea:focus {
    border-color: var(--ba-info) !important;
    box-shadow: var(--ba-focus) !important;
}

.ba-auth-pro__card input::placeholder,
.ba-auth-pro__card textarea::placeholder {
    color: #A4B0BE;
    font-weight: 650;
}

.ba-auth-optional {
    margin-inline-start: 6px;

    color: var(--ba-muted);

    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   Mobile Field
   ========================================================================== */

.ba-auth-pro__card .ba-mobile-field {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    direction: ltr;

    min-height: 56px;
    overflow: hidden;

    border: 1px solid var(--ba-border);
    border-radius: 14px;

    background: #FFFFFF;

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

.ba-auth-pro__card .ba-mobile-field:hover {
    border-color: rgba(var(--ba-primary-rgb), 0.25);
}

.ba-auth-pro__card .ba-mobile-field:focus-within {
    border-color: var(--ba-info);
    box-shadow: var(--ba-focus);
}

.ba-auth-pro__card .ba-mobile-field__code {
    display: flex;
    align-items: center;
    justify-content: center;

    border-inline-end: 1px solid var(--ba-border);
    background: #F8FBFE;
}

.ba-auth-pro__card .ba-mobile-field__fake-code {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--ba-heading);

    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.ba-auth-pro__card .ba-mobile-field__input,
.ba-auth-pro__card .register-mobile-form-group__input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: var(--ba-text) !important;

    direction: ltr;
    text-align: left;

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

    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Password
   ========================================================================== */

.ba-auth-pro__card input[type="password"] {
    padding-left: 46px !important;
}

.ba-auth-pro__card .js-password-input-visibility,
.ba-auth-pro__card .password-input-visibility {
    position: absolute;
    left: 14px;
    bottom: 16px;
    z-index: 2;

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

    width: 24px;
    height: 24px;

    color: #8E9AAA;
    cursor: pointer;
}

/* ==========================================================================
   Button
   ========================================================================== */

.ba-auth-pro__card .btn-primary,
.ba-auth-pro__card .js-submit-form-btn,
.ba-auth-pro__card .ba-auth-submit {
    position: relative;
    overflow: hidden;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 56px;
    margin-top: 16px !important;
    padding: 0 20px;

    border: 0 !important;
    border-radius: 15px !important;

    background: linear-gradient(135deg, var(--ba-accent-2), var(--ba-accent)) !important;
    color: #FFFFFF !important;

    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    text-align: center;

    box-shadow: var(--ba-shadow-accent);
    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.ba-auth-pro__card .btn-primary:hover,
.ba-auth-pro__card .js-submit-form-btn:hover,
.ba-auth-pro__card .ba-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(var(--ba-accent-rgb), 0.35);
}

.ba-auth-pro__card .is-loading {
    pointer-events: none;
    opacity: 0.82;
}

/* ==========================================================================
   Social / Security / Terms
   ========================================================================== */

.ba-auth-pro__card a {
    color: var(--ba-primary-2) !important;
    text-decoration: none;
    font-weight: 850;
}

.ba-auth-pro__card a:hover {
    color: var(--ba-primary) !important;
    text-decoration: underline;
}

.ba-auth-alert {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
}

.ba-auth-alert-danger {
    background: rgba(214, 69, 69, 0.08) !important;
    color: var(--ba-danger) !important;
}

.mb-16 {
    margin-bottom: 16px !important;
}

.ba-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 22px 0 14px !important;

    color: var(--ba-muted) !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}

.ba-auth-divider::before,
.ba-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ba-border);
}

.ba-auth-socials,
.ba-auth-pro__card .d-flex-center.gap-20 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;

    margin-bottom: 16px !important;
}

.ba-auth-social,
.ba-auth-pro__card .d-flex-center.gap-20 a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 54px !important;
    height: 54px !important;

    border: 1px solid var(--ba-border) !important;
    border-radius: 14px !important;

    background: #FFFFFF !important;
    box-shadow: 0 12px 26px rgba(var(--ba-primary-rgb), 0.06) !important;
}

.ba-auth-security,
.ba-auth-pro__secure-note {
    display: flex !important;
    align-items: center;
    gap: 12px;

    margin-top: 14px !important;
    padding: 14px !important;

    border-radius: 15px !important;
    background: linear-gradient(135deg, rgba(46,157,105,.10), rgba(0,174,239,.06)) !important;

    color: var(--ba-heading);
}

.ba-auth-security-icon,
.ba-auth-pro__secure-icon {
    flex: 0 0 auto;

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

    width: 42px;
    height: 42px;

    border-radius: 50%;
    background: rgba(46,157,105,.14);
    color: var(--ba-success);
}

.ba-auth-security-icon svg,
.ba-auth-pro__secure-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.ba-auth-security-text strong,
.ba-auth-pro__secure-note strong {
    display: block;

    color: var(--ba-heading);

    font-size: 12px;
    font-weight: 900;
    line-height: 1.8;
}

.ba-auth-security-text span,
.ba-auth-pro__secure-note small {
    display: block;

    color: var(--ba-muted) !important;

    font-size: 11px !important;
    font-weight: 700;
    line-height: 1.8;
}

.ba-auth-terms {
    max-width: 340px;
    margin: 13px auto 0 !important;

    text-align: center !important;
    color: var(--ba-muted) !important;

    font-size: 10.5px !important;
    font-weight: 650 !important;
    line-height: 1.9 !important;
}

.ba-auth-alt-link {
    margin-top: 10px !important;
    text-align: center !important;
}

.ba-auth-alt-link a {
    color: var(--ba-primary-2) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

/* ==========================================================================
   Trust Strip Desktop
   ========================================================================== */

.ba-auth-pro__trust {
    position: relative;
    z-index: 4;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    width: min(860px, 82%);
    margin: 26px auto 0;
    padding: 16px 22px;

    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;

    background: rgba(0, 45, 90, 0.58);
    color: rgba(255,255,255,0.92);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 18px 46px rgba(var(--ba-primary-rgb), 0.20);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ba-auth-pro__trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 0;
    padding: 0 18px;

    border-inline-start: 1px solid rgba(255,255,255,0.16);

    text-align: center;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

.ba-auth-pro__trust-item:first-child {
    border-inline-start: 0;
}

.ba-auth-pro__trust-icon {
    flex: 0 0 auto;

    color: #FFFFFF;

    font-size: 28px;
    font-weight: 950;
    line-height: 1;
}

/* ==========================================================================
   Remove Legacy
   ========================================================================== */

.ba-auth-trust-strip,
.ba-auth-pro .auth-slider-container,
.ba-auth-pro .ba-auth-visual,
.ba-auth-pro .auth-page-card__mask {
    display: none !important;
}

/* ==========================================================================
   Mobile: Dedicated Auth Web App
   ========================================================================== */

@media (max-width: 991px) {
    body.ba-auth-page #appHeaderArea,
    body.ba-auth-page #themeHeaderVacuum,
    body.ba-auth-page .theme-header-1,
    body.ba-auth-page #themeHeaderSticky,
    body.ba-auth-page .theme-header-1__main,
    body.ba-auth-page #appFooterArea,
    body.ba-auth-page footer,
    body.ba-auth-page .footer,
    body.ba-auth-page .theme-footer,
    body:has(.ba-auth-pro) #appHeaderArea,
    body:has(.ba-auth-pro) #themeHeaderVacuum,
    body:has(.ba-auth-pro) .theme-header-1,
    body:has(.ba-auth-pro) #themeHeaderSticky,
    body:has(.ba-auth-pro) .theme-header-1__main,
    body:has(.ba-auth-pro) #appFooterArea,
    body:has(.ba-auth-pro) footer,
    body:has(.ba-auth-pro) .footer,
    body:has(.ba-auth-pro) .theme-footer {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    html,
    body.ba-auth-page,
    body:has(.ba-auth-pro) {
        background: #F8FCFF !important;
        overflow-x: hidden !important;
    }

    .ba-auth-pro {
        min-height: 100svh !important;
        margin: 0 !important;
        padding: 16px 10px 20px !important;

        display: block !important;
        overflow: hidden !important;

        background:
            radial-gradient(circle at 10% 4%, rgba(var(--ba-info-rgb), 0.12), transparent 26%),
            radial-gradient(circle at 96% 18%, rgba(var(--ba-primary-rgb), 0.06), transparent 26%),
            linear-gradient(180deg, #F8FCFF 0%, #FFFFFF 58%, #EEF6FB 100%) !important;
    }

    .ba-auth-pro::after {
        bottom: -105px;
        height: 215px;
        clip-path: ellipse(92% 60% at 50% 100%);
    }

    .ba-auth-pro__shell {
        width: min(440px, 100%) !important;
        margin: 0 auto !important;
    }

    .ba-auth-pro__layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;

        width: 100% !important;
        min-height: auto !important;

        direction: rtl !important;

        animation: none !important;
    }

    .ba-auth-pro__hero {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .ba-auth-pro__hero-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 128px !important;
        gap: 8px !important;
        align-items: center !important;

        text-align: right !important;
    }

    .ba-auth-pro__headline {
        order: 1 !important;
    }

    .ba-auth-pro__visual {
        order: 2 !important;
        width: 128px !important;
        margin: 0 auto !important;
    }

    .ba-auth-pro__visual::before,
    .ba-auth-pro__visual::after {
        display: none !important;
    }

    .ba-auth-pro__visual img {
        width: 128px !important;
        height: auto !important;
        animation: none !important;
    }

    .ba-auth-pro__eyebrow {
        font-size: clamp(26px, 7.2vw, 36px) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.03em !important;
    }

    .ba-auth-pro__title {
        margin: 4px 0 8px !important;

        font-size: clamp(30px, 8vw, 42px) !important;
        line-height: 1.12 !important;
    }

    .ba-auth-pro__subtitle {
        margin: 0 !important;

        font-size: 12px !important;
        line-height: 1.9 !important;
    }

    .ba-auth-pro__subtitle br {
        display: none !important;
    }

    .ba-auth-pro__benefits,
    .ba-auth-pro__trust {
        display: none !important;
    }

    .ba-auth-pro__card {
        width: 100% !important;
        min-height: auto !important;
        padding: 20px 14px 16px !important;

        display: block !important;

        border-radius: 24px !important;

        box-shadow:
            0 20px 52px rgba(var(--ba-primary-rgb), 0.13),
            inset 0 1px 0 rgba(255,255,255,0.86) !important;
    }

    .ba-auth-form-header {
        margin-bottom: 14px !important;
    }

    .ba-auth-form-header h2,
    .ba-auth-pro__card h1,
    .ba-auth-pro__card h2,
    .ba-auth-pro__card .font-24 {
        font-size: 23px !important;
        line-height: 1.4 !important;
    }

    .ba-auth-form-header p {
        font-size: 12px !important;
    }

    .ba-auth-pro__card .d-flex.align-items-center.gap-4.p-4.rounded-12.border-gray-300,
    .ba-auth-pro__card .ba-auth-methods {
        min-height: 54px !important;
        margin: 14px 0 14px !important;
    }

    .ba-auth-pro__card .auth-register-method-item label,
    .ba-auth-pro__card .ba-auth-method-label {
        min-height: 52px !important;
        font-size: 13px !important;
    }

    .ba-auth-pro__card .form-group,
    .ba-auth-pro__card .position-relative.form-group {
        margin-bottom: 12px !important;
    }

    .ba-auth-pro__card label,
    .ba-auth-pro__card .input-label,
    .ba-auth-pro__card .form-group-label {
        margin-bottom: 5px !important;
        font-size: 12px !important;
    }

    .ba-auth-pro__card .form-control,
    .ba-auth-pro__card input[type="text"],
    .ba-auth-pro__card input[type="email"],
    .ba-auth-pro__card input[type="tel"],
    .ba-auth-pro__card input[type="password"],
    .ba-auth-pro__card input[type="number"],
    .ba-auth-pro__card select,
    .ba-auth-pro__card textarea,
    .ba-auth-pro__card .ba-mobile-field,
    .ba-auth-pro__card .ba-mobile-field__input,
    .ba-auth-pro__card .register-mobile-form-group__input {
        min-height: 50px !important;
        font-size: 14px !important;
    }

    .ba-auth-pro__card .ba-mobile-field {
        grid-template-columns: 72px minmax(0, 1fr) !important;
    }

    .ba-auth-pro__card .btn-primary,
    .ba-auth-pro__card .js-submit-form-btn,
    .ba-auth-pro__card .ba-auth-submit {
        min-height: 52px !important;
        margin-top: 10px !important;
        font-size: 14px !important;
    }

    .ba-auth-divider {
        margin: 18px 0 12px !important;
        font-size: 11.5px !important;
    }

    .ba-auth-socials,
    .ba-auth-pro__card .d-flex-center.gap-20 {
        gap: 12px !important;
        margin-bottom: 14px !important;
    }

    .ba-auth-social,
    .ba-auth-pro__card .d-flex-center.gap-20 a {
        width: 50px !important;
        height: 50px !important;
    }

    .ba-auth-security,
    .ba-auth-pro__secure-note {
        margin-top: 12px !important;
        padding: 12px !important;
    }

    .ba-auth-security-icon,
    .ba-auth-pro__secure-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .ba-auth-security-text strong,
    .ba-auth-pro__secure-note strong {
        font-size: 11.5px !important;
    }

    .ba-auth-security-text span,
    .ba-auth-pro__secure-note small {
        font-size: 10.5px !important;
    }

    .ba-auth-terms {
        margin-top: 11px !important;
        font-size: 10px !important;
        line-height: 1.8 !important;
    }

    .ba-auth-alt-link {
        margin-top: 8px !important;
    }
}

@media (max-width: 390px) {
    .ba-auth-pro {
        padding: 12px 8px 18px !important;
    }

    .ba-auth-pro__hero-inner {
        grid-template-columns: 1fr 104px !important;
    }

    .ba-auth-pro__visual,
    .ba-auth-pro__visual img {
        width: 104px !important;
    }

    .ba-auth-pro__eyebrow {
        font-size: 25px !important;
    }

    .ba-auth-pro__title {
        font-size: 30px !important;
    }

    .ba-auth-pro__subtitle {
        font-size: 11.5px !important;
    }

    .ba-auth-pro__card {
        padding: 18px 12px 14px !important;
        border-radius: 22px !important;
    }

    .ba-auth-pro__card .ba-mobile-field {
        grid-template-columns: 68px minmax(0, 1fr) !important;
    }
}

/* ==========================================================================
   Tablet/Desktop Refinement
   ========================================================================== */

@media (min-width: 992px) and (max-width: 1199px) {
    .ba-auth-pro {
        margin-top: 128px !important;
    }

    .ba-auth-pro__layout {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
        gap: 34px;
    }

    .ba-auth-pro__card {
        padding: 30px 24px;
    }

    .ba-auth-pro__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 0;
    }

    .ba-auth-pro__benefit:nth-child(3) {
        border-inline-start: 0;
    }
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */

body.dark-mode .ba-auth-pro,
body.dark .ba-auth-pro,
html.dark .ba-auth-pro,
[data-theme="dark"] .ba-auth-pro {
    --ba-heading: #EAF3FF;
    --ba-text: #DCE8F5;
    --ba-muted: #AFC0D2;
    --ba-muted-2: #8EA4B8;

    --ba-border: rgba(139, 166, 190, 0.28);
    --ba-border-soft: rgba(139, 166, 190, 0.16);

    color: var(--ba-text);

    background:
        radial-gradient(circle at 8% 15%, rgba(var(--ba-info-rgb), 0.11), transparent 26%),
        radial-gradient(circle at 88% 78%, rgba(var(--ba-accent-rgb), 0.08), transparent 30%),
        linear-gradient(180deg, #06111F 0%, #0E1B2B 48%, #071422 100%) !important;
}

body.dark-mode .ba-auth-pro__card,
body.dark .ba-auth-pro__card,
html.dark .ba-auth-pro__card,
[data-theme="dark"] .ba-auth-pro__card {
    border-color: rgba(139, 166, 190, 0.20);

    background:
        radial-gradient(circle at 12% 10%, rgba(var(--ba-accent-rgb), 0.08), transparent 24%),
        linear-gradient(180deg, rgba(16,30,47,0.96), rgba(10,22,36,0.94));

    color: var(--ba-text) !important;
}

body.dark-mode .ba-auth-pro__card h1,
body.dark-mode .ba-auth-pro__card h2,
body.dark-mode .ba-auth-pro__card .font-24,
body.dark-mode .ba-auth-form-header h2,
body.dark-mode .ba-auth-pro__card label,
body.dark-mode .ba-auth-pro__card .input-label,
body.dark-mode .ba-auth-pro__card .form-group-label,
body.dark .ba-auth-pro__card h1,
body.dark .ba-auth-pro__card h2,
body.dark .ba-auth-pro__card .font-24,
body.dark .ba-auth-form-header h2,
body.dark .ba-auth-pro__card label,
body.dark .ba-auth-pro__card .input-label,
body.dark .ba-auth-pro__card .form-group-label,
html.dark .ba-auth-pro__card h1,
html.dark .ba-auth-pro__card h2,
html.dark .ba-auth-pro__card .font-24,
html.dark .ba-auth-form-header h2,
html.dark .ba-auth-pro__card label,
html.dark .ba-auth-pro__card .input-label,
html.dark .ba-auth-pro__card .form-group-label,
[data-theme="dark"] .ba-auth-pro__card h1,
[data-theme="dark"] .ba-auth-pro__card h2,
[data-theme="dark"] .ba-auth-pro__card .font-24,
[data-theme="dark"] .ba-auth-form-header h2,
[data-theme="dark"] .ba-auth-pro__card label,
[data-theme="dark"] .ba-auth-pro__card .input-label,
[data-theme="dark"] .ba-auth-pro__card .form-group-label {
    color: #EAF3FF !important;
}

body.dark-mode .ba-auth-pro__card .form-control,
body.dark-mode .ba-auth-pro__card input[type="text"],
body.dark-mode .ba-auth-pro__card input[type="email"],
body.dark-mode .ba-auth-pro__card input[type="tel"],
body.dark-mode .ba-auth-pro__card input[type="password"],
body.dark-mode .ba-auth-pro__card input[type="number"],
body.dark-mode .ba-auth-pro__card select,
body.dark-mode .ba-auth-pro__card textarea,
body.dark .ba-auth-pro__card .form-control,
body.dark .ba-auth-pro__card input[type="text"],
body.dark .ba-auth-pro__card input[type="email"],
body.dark .ba-auth-pro__card input[type="tel"],
body.dark .ba-auth-pro__card input[type="password"],
body.dark .ba-auth-pro__card input[type="number"],
body.dark .ba-auth-pro__card select,
body.dark .ba-auth-pro__card textarea,
html.dark .ba-auth-pro__card .form-control,
html.dark .ba-auth-pro__card input[type="text"],
html.dark .ba-auth-pro__card input[type="email"],
html.dark .ba-auth-pro__card input[type="tel"],
html.dark .ba-auth-pro__card input[type="password"],
html.dark .ba-auth-pro__card input[type="number"],
html.dark .ba-auth-pro__card select,
html.dark .ba-auth-pro__card textarea,
[data-theme="dark"] .ba-auth-pro__card .form-control,
[data-theme="dark"] .ba-auth-pro__card input[type="text"],
[data-theme="dark"] .ba-auth-pro__card input[type="email"],
[data-theme="dark"] .ba-auth-pro__card input[type="tel"],
[data-theme="dark"] .ba-auth-pro__card input[type="password"],
[data-theme="dark"] .ba-auth-pro__card input[type="number"],
[data-theme="dark"] .ba-auth-pro__card select,
[data-theme="dark"] .ba-auth-pro__card textarea {
    border-color: rgba(139, 166, 190, 0.28) !important;
    background: rgba(255,255,255,0.06) !important;
    color: #EAF3FF !important;
}

body.dark-mode .ba-auth-pro__card input::placeholder,
body.dark-mode .ba-auth-pro__card textarea::placeholder,
body.dark .ba-auth-pro__card input::placeholder,
body.dark .ba-auth-pro__card textarea::placeholder,
html.dark .ba-auth-pro__card input::placeholder,
html.dark .ba-auth-pro__card textarea::placeholder,
[data-theme="dark"] .ba-auth-pro__card input::placeholder,
[data-theme="dark"] .ba-auth-pro__card textarea::placeholder {
    color: #8EA4B8;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.ba-auth-pro :focus-visible {
    outline: 3px solid rgba(var(--ba-info-rgb), 0.42);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .ba-auth-pro *,
    .ba-auth-pro *::before,
    .ba-auth-pro *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}