/* ==========================================================================
   BankAmooz Auth UI
   Unified with Checkout V2 Design System
   RTL / Persian / Mobile-first / Desktop responsive / Dark-Light compatible
   ========================================================================== */

/* ==========================================================================
   Design Tokens
   ========================================================================== */

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

    --ba-active-blue: #1F7BFF;
    --ba-electric-blue: #2F8CFF;
    --ba-cyan: #00AEEF;
    --ba-info: #00AEEF;
    --ba-info-rgb: 0, 174, 239;

    --ba-orange: #FF6A00;
    --ba-orange-glow: #FF8A1F;
    --ba-accent: #F26522;
    --ba-accent-2: #FF7A1A;
    --ba-accent-rgb: 242, 101, 34;

    --ba-green: #35D07F;
    --ba-success: #2E9D69;
    --ba-danger: #D64545;
    --ba-red: #FF4D4F;
    --ba-yellow: #F2B705;

    --ba-heading: #092E57;
    --ba-body: #243044;
    --ba-text: #243044;
    --ba-muted: #708096;
    --ba-muted-soft: #9AA8B8;
    --ba-placeholder: #A4B0BE;

    --ba-bg: #F8FCFF;
    --ba-bg-2: #EEF6FB;
    --ba-card: #FFFFFF;
    --ba-card-soft: #F8FBFE;

    --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: 22px;
    --ba-radius-md: 16px;
    --ba-radius-sm: 12px;

    --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-page: 0 34px 90px rgba(var(--ba-primary-rgb), 0.16);
    --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);

    --ba-auth-header-offset: 118px;
}

/* ==========================================================================
   Global Auth Isolation
   ========================================================================== */

.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 - 220px);
    margin-top: var(--ba-auth-header-offset);
    padding: 38px 16px 54px;

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

    color: var(--ba-text);
    background:
        radial-gradient(circle at 10% 12%, rgba(var(--ba-info-rgb), 0.12), transparent 28%),
        radial-gradient(circle at 86% 72%, rgba(var(--ba-accent-rgb), 0.08), transparent 32%),
        linear-gradient(180deg, #F8FCFF 0%, #FFFFFF 50%, #EEF6FB 100%);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

    opacity: 0.38;
    background-image:
        linear-gradient(rgba(var(--ba-primary-rgb), 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--ba-primary-rgb), 0.045) 1px, transparent 1px);
    background-size: 38px 38px;

    mask-image: linear-gradient(to bottom, #000, transparent 86%);
    pointer-events: none;
}

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

    height: 34%;
    background:
        radial-gradient(circle at 22% 88%, rgba(var(--ba-info-rgb), 0.14), transparent 32%),
        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 a {
    text-decoration: none;
}

.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;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Desktop Header Safety
   ========================================================================== */

@media (min-width: 992px) {
    body.ba-auth-page #appHeaderArea,
    body:has(.ba-auth-pro) #appHeaderArea {
        position: relative !important;
        z-index: 200 !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: 220 !important;
    }

    body.ba-auth-page .ba-auth-pro,
    body:has(.ba-auth-pro) .ba-auth-pro {
        margin-top: var(--ba-auth-header-offset) !important;
    }
}

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

.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, 72px);
    align-items: center;

    min-height: 650px;
    direction: ltr;

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

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

@keyframes baAuthEnter {
    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 {
    margin: 0;

    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: 999px;
    background:
        radial-gradient(circle at 50% 45%, rgba(var(--ba-info-rgb), 0.13), transparent 44%),
        linear-gradient(135deg, rgba(var(--ba-primary-rgb), 0.06), 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.6s 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.6s 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
   ========================================================================== */

.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: 999px;
}

.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;
}

/* ==========================================================================
   Auth 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::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.62), transparent 38%);
    pointer-events: none;
}

.ba-auth-pro__card > * {
    position: relative;
    z-index: 1;
}

.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,
.ba-auth-pro__micro-badge {
    display: none !important;
}

/* ==========================================================================
   Form Header
   ========================================================================== */

.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;
}

/* ==========================================================================
   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: 16px !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));
}

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

/* ==========================================================================
   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: 15px !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 textarea {
    min-height: 110px;
    padding-block: 14px;
    resize: vertical;
}

.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: var(--ba-placeholder);
    font-weight: 650;
}

.ba-auth-pro__card input[dir="ltr"] {
    text-align: left;
}

.ba-auth-field-help,
.ba-auth-pro__card small {
    display: block;
    margin-top: 6px;

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

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

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

    color: var(--ba-muted);

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

/* ==========================================================================
   Mobile Phone 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: 15px;

    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 Visibility
   ========================================================================== */

.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;

    transition: color 0.18s ease, transform 0.18s ease;
}

.ba-auth-pro__card .js-password-input-visibility:hover,
.ba-auth-pro__card .password-input-visibility:hover {
    color: var(--ba-primary);
    transform: scale(1.05);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.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: 16px !important;

    background: linear-gradient(135deg, var(--ba-orange-glow) 0%, var(--ba-orange) 100%) !important;
    color: #FFFFFF !important;

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

    box-shadow: 0 18px 38px rgba(255, 106, 0, 0.34);
    cursor: pointer;

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

.ba-auth-pro__card .btn-primary::after,
.ba-auth-pro__card .js-submit-form-btn::after,
.ba-auth-pro__card .ba-auth-submit::after {
    content: "";
    position: absolute;
    top: 0;
    right: -120%;

    width: 58%;
    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
    transform: skewX(-24deg);

    transition: right 0.75s var(--ba-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);
    filter: brightness(1.04);
    box-shadow: 0 24px 52px rgba(255, 106, 0, 0.40);
}

.ba-auth-pro__card .btn-primary:hover::after,
.ba-auth-pro__card .js-submit-form-btn:hover::after,
.ba-auth-pro__card .ba-auth-submit:hover::after {
    right: 130%;
}

.ba-auth-pro__card .btn-primary:active,
.ba-auth-pro__card .js-submit-form-btn:active,
.ba-auth-pro__card .ba-auth-submit:active {
    transform: translateY(0);
}

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

/* ==========================================================================
   Links / Divider / Socials
   ========================================================================== */

.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-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: 15px !important;

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

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

.ba-auth-social:hover,
.ba-auth-pro__card .d-flex-center.gap-20 a:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--ba-info-rgb), 0.35) !important;
    box-shadow: 0 18px 30px rgba(var(--ba-primary-rgb), 0.12) !important;
    text-decoration: none;
}

/* ==========================================================================
   Alerts / Validation
   ========================================================================== */

.ba-auth-pro__card .text-danger,
.ba-auth-pro__card .invalid-feedback,
.ba-auth-pro__card .error,
.ba-auth-pro__card .form-error {
    display: block;

    margin-top: 6px;

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

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

.ba-auth-alert {
    display: block;
    padding: 12px 14px !important;

    border-radius: 15px !important;

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

.ba-auth-alert strong {
    display: block;
    margin-bottom: 3px;
}

.ba-auth-alert span {
    display: block;
}

.ba-auth-alert-success {
    background: rgba(46, 157, 105, 0.10) !important;
    color: var(--ba-success) !important;
}

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

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

.mt-20 {
    margin-top: 20px !important;
}

/* ==========================================================================
   Security / Terms / Bottom Links
   ========================================================================== */

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

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

    border: 1px solid rgba(46, 157, 105, 0.16);
    border-radius: 16px !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: 999px;
    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,
.ba-auth-bottom-links {
    margin-top: 10px !important;
    text-align: center !important;
}

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

/* ==========================================================================
   Forgot / Verify Code
   ========================================================================== */

.ba-auth-form--verify-code .ba-auth-otp-input {
    text-align: center !important;
    letter-spacing: 8px;
    font-size: 22px !important;
    font-weight: 950 !important;
}

.ba-auth-code-target {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;

    margin-bottom: 16px;
    padding: 12px 14px;

    border: 1px solid rgba(var(--ba-primary-rgb), 0.08);
    border-radius: 15px;

    background: rgba(var(--ba-primary-rgb), 0.055);
    color: var(--ba-heading);

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

.ba-auth-code-target strong {
    color: var(--ba-primary);
    font-weight: 950;
}

.ba-auth-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;

    margin-top: 14px;

    color: var(--ba-muted);

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

.ba-auth-resend a {
    font-weight: 900;
}

.ba-auth-captcha {
    margin-top: 16px;
}

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

.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;
}

/* ==========================================================================
   Legacy Cleanup
   ========================================================================== */

.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 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.ba-auth-page .theme-footer-1,
    body.ba-auth-page .theme-footer-1__newsletter,
    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,
    body:has(.ba-auth-pro) .theme-footer-1,
    body:has(.ba-auth-pro) .theme-footer-1__newsletter {
        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::before {
        opacity: 0.30;
        background-size: 34px 34px;
    }

    .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;
        border-radius: 15px !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;
    }

    .ba-auth-form--verify-code .ba-auth-otp-input {
        font-size: 20px !important;
        letter-spacing: 6px;
    }
}

@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 / Small Desktop
   ========================================================================== */

@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --ba-auth-header-offset: 128px;
    }

    .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 - Checkout V2 Unified
   ========================================================================== */

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-body: #DCE8F5;
    --ba-text: #DCE8F5;
    --ba-muted: #AFC0D2;
    --ba-muted-soft: #7F94AA;
    --ba-placeholder: #7F94AA;

    --ba-border: rgba(139, 166, 190, 0.24);
    --ba-border-soft: rgba(139, 166, 190, 0.14);

    --ba-card: rgba(16, 30, 47, 0.78);
    --ba-card-soft: rgba(11, 23, 40, 0.56);

    --ba-shadow-card: 0 28px 80px rgba(0, 0, 0, 0.42);
    --ba-shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.22);
    --ba-shadow-accent: 0 0 26px rgba(255, 106, 0, 0.40);
    --ba-focus: 0 0 0 4px rgba(31, 123, 255, 0.22);

    color: var(--ba-text);

    background:
        radial-gradient(circle at 12% 10%, rgba(31, 123, 255, 0.28), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(255, 106, 0, 0.14), transparent 28%),
        linear-gradient(135deg, #06111F 0%, #081629 48%, #050B14 100%) !important;

    color-scheme: dark;
}

body.dark-mode .ba-auth-pro::before,
body.dark .ba-auth-pro::before,
html.dark .ba-auth-pro::before,
[data-theme="dark"] .ba-auth-pro::before {
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(139, 166, 190, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 166, 190, 0.12) 1px, transparent 1px);
}

body.dark-mode .ba-auth-pro::after,
body.dark .ba-auth-pro::after,
html.dark .ba-auth-pro::after,
[data-theme="dark"] .ba-auth-pro::after {
    background:
        radial-gradient(circle at 20% 88%, rgba(31, 123, 255, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(0, 27, 67, 0.92), rgba(6, 17, 31, 0.86)) !important;
}

body.dark-mode .ba-auth-pro__eyebrow,
body.dark-mode .ba-auth-pro__title,
body.dark .ba-auth-pro__eyebrow,
body.dark .ba-auth-pro__title,
html.dark .ba-auth-pro__eyebrow,
html.dark .ba-auth-pro__title,
[data-theme="dark"] .ba-auth-pro__eyebrow,
[data-theme="dark"] .ba-auth-pro__title {
    color: #EAF3FF !important;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

body.dark-mode .ba-auth-pro__title span,
body.dark .ba-auth-pro__title span,
html.dark .ba-auth-pro__title span,
[data-theme="dark"] .ba-auth-pro__title span {
    color: var(--ba-orange-glow) !important;
}

body.dark-mode .ba-auth-pro__subtitle,
body.dark .ba-auth-pro__subtitle,
html.dark .ba-auth-pro__subtitle,
[data-theme="dark"] .ba-auth-pro__subtitle {
    color: #DCE8F5 !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: var(--ba-border);

    background:
        radial-gradient(circle at 12% 10%, rgba(255, 106, 0, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(16,30,47,0.86), rgba(11,23,40,0.72)) !important;

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

body.dark-mode .ba-auth-pro__card::before,
body.dark .ba-auth-pro__card::before,
html.dark .ba-auth-pro__card::before,
[data-theme="dark"] .ba-auth-pro__card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 38%);
}

body.dark-mode .ba-auth-form-header h2,
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-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-form-header h2,
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-pro__card label,
body.dark .ba-auth-pro__card .input-label,
body.dark .ba-auth-pro__card .form-group-label,
html.dark .ba-auth-form-header h2,
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-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-form-header h2,
[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-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-form-header p,
body.dark .ba-auth-form-header p,
html.dark .ba-auth-form-header p,
[data-theme="dark"] .ba-auth-form-header p {
    color: var(--ba-muted) !important;
}

body.dark-mode .ba-auth-pro__card .d-flex.align-items-center.gap-4.p-4.rounded-12.border-gray-300,
body.dark-mode .ba-auth-pro__card .ba-auth-methods,
body.dark .ba-auth-pro__card .d-flex.align-items-center.gap-4.p-4.rounded-12.border-gray-300,
body.dark .ba-auth-pro__card .ba-auth-methods,
html.dark .ba-auth-pro__card .d-flex.align-items-center.gap-4.p-4.rounded-12.border-gray-300,
html.dark .ba-auth-pro__card .ba-auth-methods,
[data-theme="dark"] .ba-auth-pro__card .d-flex.align-items-center.gap-4.p-4.rounded-12.border-gray-300,
[data-theme="dark"] .ba-auth-pro__card .ba-auth-methods {
    border-color: var(--ba-border) !important;
    background: rgba(6, 17, 31, 0.56) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.dark-mode .ba-auth-pro__card .auth-register-method-item label,
body.dark-mode .ba-auth-pro__card .ba-auth-method-label,
body.dark .ba-auth-pro__card .auth-register-method-item label,
body.dark .ba-auth-pro__card .ba-auth-method-label,
html.dark .ba-auth-pro__card .auth-register-method-item label,
html.dark .ba-auth-pro__card .ba-auth-method-label,
[data-theme="dark"] .ba-auth-pro__card .auth-register-method-item label,
[data-theme="dark"] .ba-auth-pro__card .ba-auth-method-label {
    color: var(--ba-body) !important;
}

body.dark-mode .ba-auth-pro__card .auth-register-method-item input:checked + label,
body.dark-mode .ba-auth-pro__card .ba-auth-method-radio:checked + .ba-auth-method-label,
body.dark .ba-auth-pro__card .auth-register-method-item input:checked + label,
body.dark .ba-auth-pro__card .ba-auth-method-radio:checked + .ba-auth-method-label,
html.dark .ba-auth-pro__card .auth-register-method-item input:checked + label,
html.dark .ba-auth-pro__card .ba-auth-method-radio:checked + .ba-auth-method-label,
[data-theme="dark"] .ba-auth-pro__card .auth-register-method-item input:checked + label,
[data-theme="dark"] .ba-auth-pro__card .ba-auth-method-radio:checked + .ba-auth-method-label {
    color: #fff !important;
    background: var(--ba-active-blue) !important;
    box-shadow: 0 0 24px rgba(31, 123, 255, 0.35);
}

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: var(--ba-border) !important;
    background: rgba(6, 17, 31, 0.56) !important;
    color: #fff !important;
    caret-color: var(--ba-orange-glow);
}

body.dark-mode .ba-auth-pro__card .form-control:focus,
body.dark-mode .ba-auth-pro__card input:focus,
body.dark-mode .ba-auth-pro__card select:focus,
body.dark-mode .ba-auth-pro__card textarea:focus,
body.dark .ba-auth-pro__card .form-control:focus,
body.dark .ba-auth-pro__card input:focus,
body.dark .ba-auth-pro__card select:focus,
body.dark .ba-auth-pro__card textarea:focus,
html.dark .ba-auth-pro__card .form-control:focus,
html.dark .ba-auth-pro__card input:focus,
html.dark .ba-auth-pro__card select:focus,
html.dark .ba-auth-pro__card textarea:focus,
[data-theme="dark"] .ba-auth-pro__card .form-control:focus,
[data-theme="dark"] .ba-auth-pro__card input:focus,
[data-theme="dark"] .ba-auth-pro__card select:focus,
[data-theme="dark"] .ba-auth-pro__card textarea:focus {
    border-color: rgba(31, 123, 255, 0.72) !important;
    box-shadow: 0 0 0 4px rgba(31, 123, 255, 0.18) !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: var(--ba-muted-soft) !important;
    opacity: 1;
}

body.dark-mode .ba-auth-pro__card .ba-mobile-field,
body.dark .ba-auth-pro__card .ba-mobile-field,
html.dark .ba-auth-pro__card .ba-mobile-field,
[data-theme="dark"] .ba-auth-pro__card .ba-mobile-field {
    border-color: var(--ba-border);
    background: rgba(6, 17, 31, 0.56);
}

body.dark-mode .ba-auth-pro__card .ba-mobile-field__code,
body.dark .ba-auth-pro__card .ba-mobile-field__code,
html.dark .ba-auth-pro__card .ba-mobile-field__code,
[data-theme="dark"] .ba-auth-pro__card .ba-mobile-field__code {
    border-color: var(--ba-border);
    background: rgba(11, 23, 40, 0.72);
}

body.dark-mode .ba-auth-pro__card .ba-mobile-field__fake-code,
body.dark .ba-auth-pro__card .ba-mobile-field__fake-code,
html.dark .ba-auth-pro__card .ba-mobile-field__fake-code,
[data-theme="dark"] .ba-auth-pro__card .ba-mobile-field__fake-code {
    color: #EAF3FF;
}

body.dark-mode .ba-auth-social,
body.dark-mode .ba-auth-pro__card .d-flex-center.gap-20 a,
body.dark .ba-auth-social,
body.dark .ba-auth-pro__card .d-flex-center.gap-20 a,
html.dark .ba-auth-social,
html.dark .ba-auth-pro__card .d-flex-center.gap-20 a,
[data-theme="dark"] .ba-auth-social,
[data-theme="dark"] .ba-auth-pro__card .d-flex-center.gap-20 a {
    border-color: var(--ba-border) !important;
    background: rgba(6, 17, 31, 0.56) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
}

body.dark-mode .ba-auth-divider::before,
body.dark-mode .ba-auth-divider::after,
body.dark .ba-auth-divider::before,
body.dark .ba-auth-divider::after,
html.dark .ba-auth-divider::before,
html.dark .ba-auth-divider::after,
[data-theme="dark"] .ba-auth-divider::before,
[data-theme="dark"] .ba-auth-divider::after {
    background: var(--ba-border);
}

body.dark-mode .ba-auth-security,
body.dark-mode .ba-auth-pro__secure-note,
body.dark .ba-auth-security,
body.dark .ba-auth-pro__secure-note,
html.dark .ba-auth-security,
html.dark .ba-auth-pro__secure-note,
[data-theme="dark"] .ba-auth-security,
[data-theme="dark"] .ba-auth-pro__secure-note {
    border-color: rgba(53, 208, 127, 0.28);
    background: rgba(53, 208, 127, 0.10) !important;
}

body.dark-mode .ba-auth-security-icon,
body.dark-mode .ba-auth-pro__secure-icon,
body.dark .ba-auth-security-icon,
body.dark .ba-auth-pro__secure-icon,
html.dark .ba-auth-security-icon,
html.dark .ba-auth-pro__secure-icon,
[data-theme="dark"] .ba-auth-security-icon,
[data-theme="dark"] .ba-auth-pro__secure-icon {
    background: rgba(53, 208, 127, 0.16);
    border: 1px solid rgba(53, 208, 127, 0.45);
    color: var(--ba-green);
}

body.dark-mode .ba-auth-security-text strong,
body.dark-mode .ba-auth-pro__secure-note strong,
body.dark .ba-auth-security-text strong,
body.dark .ba-auth-pro__secure-note strong,
html.dark .ba-auth-security-text strong,
html.dark .ba-auth-pro__secure-note strong,
[data-theme="dark"] .ba-auth-security-text strong,
[data-theme="dark"] .ba-auth-pro__secure-note strong {
    color: #EAF3FF;
}

body.dark-mode .ba-auth-pro__benefits,
body.dark .ba-auth-pro__benefits,
html.dark .ba-auth-pro__benefits,
[data-theme="dark"] .ba-auth-pro__benefits {
    border-color: var(--ba-border);
    background: rgba(16, 30, 47, 0.78);
    box-shadow: var(--ba-shadow-soft);
}

body.dark-mode .ba-auth-pro__benefit,
body.dark .ba-auth-pro__benefit,
html.dark .ba-auth-pro__benefit,
[data-theme="dark"] .ba-auth-pro__benefit {
    border-color: var(--ba-border-soft);
}

body.dark-mode .ba-auth-pro__benefit strong,
body.dark .ba-auth-pro__benefit strong,
html.dark .ba-auth-pro__benefit strong,
[data-theme="dark"] .ba-auth-pro__benefit strong {
    color: #EAF3FF;
}

body.dark-mode .ba-auth-pro__benefit small,
body.dark .ba-auth-pro__benefit small,
html.dark .ba-auth-pro__benefit small,
[data-theme="dark"] .ba-auth-pro__benefit small {
    color: var(--ba-muted);
}

body.dark-mode .ba-auth-code-target,
body.dark .ba-auth-code-target,
html.dark .ba-auth-code-target,
[data-theme="dark"] .ba-auth-code-target {
    border-color: rgba(31, 123, 255, 0.24);
    background: rgba(31, 123, 255, 0.10);
    color: #EAF3FF;
}

body.dark-mode .ba-auth-code-target strong,
body.dark .ba-auth-code-target strong,
html.dark .ba-auth-code-target strong,
[data-theme="dark"] .ba-auth-code-target strong {
    color: var(--ba-electric-blue);
}

body.dark-mode .ba-auth-alert-success,
body.dark .ba-auth-alert-success,
html.dark .ba-auth-alert-success,
[data-theme="dark"] .ba-auth-alert-success {
    border: 1px solid rgba(53, 208, 127, 0.34);
    background: rgba(53, 208, 127, 0.10) !important;
    color: var(--ba-green) !important;
}

body.dark-mode .ba-auth-alert-danger,
body.dark .ba-auth-alert-danger,
html.dark .ba-auth-alert-danger,
[data-theme="dark"] .ba-auth-alert-danger {
    border: 1px solid rgba(255, 77, 79, 0.30);
    background: rgba(255, 77, 79, 0.10) !important;
    color: #FF8A8A !important;
}

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

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

body.dark-mode .ba-auth-pro :focus-visible,
body.dark .ba-auth-pro :focus-visible,
html.dark .ba-auth-pro :focus-visible,
[data-theme="dark"] .ba-auth-pro :focus-visible {
    outline-color: rgba(31, 123, 255, 0.58);
}

@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;
    }
}