/* =============================================================================
 * ApostaFut — Auth modal redesign (registration / login / forgot / change pwd) 
 * ============================================================================= */

.af-auth-card {
    --af-auth-outer-bg: #0b0b0b;
    --af-auth-outer-border: #13531a;
    --af-auth-inner-bg: #0f0f0f;
    --af-auth-inner-border: #249e31;
    --af-auth-text: #ffffff;
    --af-auth-muted: #c9c5ca;
    --af-auth-field-bg: #000000;
    --af-auth-green: #2ecd3f;
    --af-auth-green-soft: #58da66;
    --af-auth-btn-text: #0b320f;
    --af-auth-footer-muted: #d5f6d9;
    --af-auth-placeholder: #939094;
    --af-auth-error: #cc1200;
}

/* Header Register: same `.btn-hover` sweep as legacy `.ba-login-btn.join_btn`, but
   without `join_btn` so global `$(".join_btn")` handlers do not attach here. */
.ba-main-header .ba-login-btn.ba-register-header span.btn-hover {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 1;
    background-image: url(/assets/images/button-hover-elem.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    mix-blend-mode: overlay;
    transform: translate(-120%);
    transition: transform ease-out 0.3s;
    opacity: 0.4;
    top: 0;
}

.ba-main-header .ba-login-btn.ba-register-header:hover span.btn-hover {
    transform: translate(120%);
}


.ba-login-signUp.af-auth-overlay {
    background: var(--theme-modal-color, rgba(0, 0, 0, 0.7));
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-y: auto;
    pointer-events: auto;
}


.ba-login-signUp.af-auth-overlay:where(:not([style*="display: none"]):not([style*="display:none"])) {
    display: flex !important;
}

.ba-login-signUp.af-auth-overlay.d-none {
    display: none !important;
}


.af-auth-card .iti,
.af-auth-popup .iti {
    display: contents;
}

.af-auth-card .iti__flag-container,
.af-auth-card .iti__country-list,
.af-auth-popup .iti__flag-container,
.af-auth-popup .iti__country-list {
    display: none !important;
}


.af-auth-popup {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
    width: min(100%, 500px);
    margin: auto;
    background: var(--af-auth-outer-bg, #0b0b0b);
    border: 1px solid var(--af-auth-outer-border, #13531a);
    border-radius: 32px;
    position: relative;
}

/* Inner card — matches Figma "login popup" (see design-Images/*.css exports). */
.af-auth-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 32px;
    width: 100%;
    margin: 0 auto;
    background: var(--af-auth-inner-bg);
    border: 1px solid var(--af-auth-inner-border);
    border-radius: 24px;
    position: relative;
}


.af-auth-card .ba-side-menu-head,
.af-auth-popup > .ba-side-menu-head {
    position: absolute;
    top: 24px;
    right: 24px;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    z-index: 5;
}

.af-auth-card .ba-back-btn,
.af-auth-popup > .ba-side-menu-head .ba-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    color: #ffffff;
    box-shadow: none;
}

.af-auth-card .ba-back-btn:hover,
.af-auth-popup > .ba-side-menu-head .ba-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none !important;
}

.af-auth-card .ba-back-btn .ba-icon-style,
.af-auth-popup > .ba-side-menu-head .ba-back-btn .ba-icon-style {
    display: inline-block;
    width: 22px;
    height: 22px;
    padding: 0;
    background-color: transparent;
    background-image: url("/assets/images/close.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
    filter: brightness(0) invert(1);
    position: relative;
}

/* Drop any pseudo-element overlays from legacy or earlier overrides */
.af-auth-card .ba-back-btn .ba-icon-style::before,
.af-auth-card .ba-back-btn .ba-icon-style::after,
.af-auth-popup > .ba-side-menu-head .ba-back-btn .ba-icon-style::before,
.af-auth-popup > .ba-side-menu-head .ba-back-btn .ba-icon-style::after {
    content: none;
}

.changePassword_bggg.af-auth-overlay.is-mandatory-pwd .ba-back-btn,
.changePassword_bggg.af-auth-overlay.is-mandatory-pwd .ba-side-menu-head {
    display: none !important;
}

/* --------------------------------------------------------------------------
 * Header (logo + title + optional subtitle)
 * -------------------------------------------------------------------------- */
.af-auth-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.af-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    line-height: 0;
}

.af-auth-logo__img {
    display: block;
    width: 101px;
    height: auto;
    max-width: min(101px, 100%);
}

.af-auth-card__titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    margin: 0;
}

.af-auth-card__title {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    text-transform: none;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: var(--af-auth-text);
}

.af-auth-card__subtitle {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--af-auth-muted);
}

.af-auth-card__subtitle strong,
.af-auth-card__subtitle b {
    font-weight: 600;
    color: var(--af-auth-text);
}

/* --------------------------------------------------------------------------
 * Form layout
 * -------------------------------------------------------------------------- */
.af-auth-card .ba-login-signUp-form,
.af-auth-card form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}


.af-auth-card .ba-number-login-box {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    position: relative;
}

.af-auth-card .ba-number-login-box.af-auth-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: 100%;
    height: 56px;
    background: var(--af-auth-field-bg);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 24px;
    position: relative;
}

.af-auth-card .ba-number-login-box.af-auth-field:focus-within {
    border-color: var(--af-auth-green);
}

.af-auth-card .ba-number-login-box.af-auth-field--filled {
    border-color: var(--af-auth-green);
}

/* Country selector pill */
.af-auth-card .countrycodes,
.af-auth-card .af-auth-country {
    position: relative;
    flex: 0 0 82px;
    width: 82px;
    min-width: 82px;
    height: 56px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: var(--af-auth-field-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--af-auth-placeholder);
}

.af-auth-card .countrycodes img,
.af-auth-card .af-auth-country__flag {
    width: 34px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.af-auth-card .af-auth-country__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

.af-auth-card .countrycodes select.countryCodeSelector {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    color: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.af-auth-card .ba-number-login-box.af-auth-phone-row > input[type="text"],
.af-auth-card .ba-number-login-box.af-auth-phone-row > input[type="tel"],
.af-auth-card .ba-number-login-box.af-auth-phone-row > input[type="number"],
.af-auth-card .af-auth-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 56px;
    border-radius: 999px;
    background: var(--af-auth-field-bg);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    color: var(--af-auth-green);
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: normal;
    margin: 0;
    outline: none;
}

.af-auth-card .ba-number-login-box.af-auth-phone-row > input[type="text"]::placeholder,
.af-auth-card .ba-number-login-box.af-auth-phone-row > input[type="tel"]::placeholder,
.af-auth-card .ba-number-login-box.af-auth-phone-row > input[type="number"]::placeholder {
    color: var(--af-auth-placeholder);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: normal;
    opacity: 1;
}

.af-auth-card .ba-number-login-box.af-auth-phone-row > input:focus {
    border-color: var(--af-auth-green);
}

.af-auth-card .ba-number-login-box.af-auth-field > input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    color: var(--af-auth-text);
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: normal;
}

.af-auth-card .ba-number-login-box.af-auth-field > input::placeholder {
    color: var(--af-auth-placeholder);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: normal;
    opacity: 1;
}

/* Password "eye" */
.af-auth-card .ba-number-login-box.af-auth-field .af-auth-field__icon,
.af-auth-card .ba-number-login-box.af-auth-field .i_style {
    position: static;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--af-auth-placeholder);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.af-auth-card .ba-number-login-box.af-auth-field .i_style.i_error,
.af-auth-card .ba-number-login-box.af-auth-field .i_style.i_right {
    display: none;
}


.af-auth-card .af-auth-input--value,
.af-auth-card .ba-number-login-box.af-auth-phone-row > input:not(:placeholder-shown) {
    color: var(--af-auth-green);
}

/* -------------------------
 * Errors / helper text
 * ------------------------- */
.af-auth-card .text-danger,
.af-auth-card .error-msg,
.af-auth-card .af-auth-error {
    display: block;
    margin: -4px 4px 0;
    padding: 0;
    font-family: inherit;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-auth-error);
    text-align: left;
}

.af-auth-card .af-auth-error:empty {
    display: none;
}

/* --------------------------------------------------------------------------
 * Caption row (error left, forget password right) — only on login w/ password
 * -------------------------------------------------------------------------- */
.af-auth-card .af-auth-caption {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 4px;
    margin-top: -4px;
}

.af-auth-card .af-auth-caption__error {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-auth-error);
    text-align: left;
}

.af-auth-card .af-auth-caption__link,
.af-auth-card .af-auth-caption a {
    flex: 0 0 auto;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-auth-green-soft);
    text-decoration: none;
}

.af-auth-card .af-auth-caption__link:hover,
.af-auth-card .af-auth-caption a:hover {
    text-decoration: underline;
}


.af-auth-card .ba-otp-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.af-auth-card .ba-otp-form input {
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    background: var(--af-auth-field-bg);
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: var(--af-auth-green);
    text-align: center;
    outline: none;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.af-auth-card .ba-otp-form input::-webkit-outer-spin-button,
.af-auth-card .ba-otp-form input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.af-auth-card .ba-otp-form input:not(:last-child) {
    margin-right: 0;
}

.af-auth-card .ba-otp-form input:focus,
.af-auth-card .ba-otp-form input:not(:placeholder-shown),
.af-auth-card .ba-otp-form input.active {
    border-color: var(--af-auth-green);
    color: var(--af-auth-green);
}

/* "Change number" / resend / timer line below OTP */
.af-auth-card .ba-change-mbl-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin: 0;
}

.af-auth-card .ba-mbl-num,
.af-auth-card .ba-mbl-num#usermobile,
.af-auth-card #usermobile,
.af-auth-card .bggg_child_header {
    display: inline;
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--af-auth-text);
    text-align: center;
}

.af-auth-card .ba-change-mbl-num a,
.af-auth-card .ba-change-mbl-num .login_btn,
.af-auth-card .ba-change-mbl-num .join_btn {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-auth-green-soft);
    text-decoration: none;
    cursor: pointer;
}

.af-auth-card .ba-resend-otp,
.af-auth-card .ba-resend-otp-timer {
    display: block;
    margin: 0 auto;
    padding: 0;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-auth-green-soft);
    text-align: center;
    text-decoration: none;
}

.af-auth-card .ba-resend-otp:hover {
    color: var(--af-auth-green);
    text-decoration: underline;
}


.af-auth-card .ba-submit-btn,
.af-auth-card .signup-submit,
.af-auth-card .login-otp,
.af-auth-card .login-pwd,
.af-auth-card .pwd-change,
.af-auth-card .request_otp_forgot,
.af-auth-card .af-auth-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 51px;
    margin: 0;
    padding: 14px 24px;
    border: none;
    border-radius: 32px;
    background: var(--af-auth-green);
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.01em;
    color: var(--af-auth-btn-text) !important;
    cursor: pointer;
    text-transform: none;
    text-decoration: none;
    position: relative;
    z-index: 1;
    box-shadow: none;
}

.af-auth-card .ba-submit-btn::after,
.af-auth-card .signup-submit::after,
.af-auth-card .login-otp::after,
.af-auth-card .login-pwd::after,
.af-auth-card .pwd-change::after,
.af-auth-card .request_otp_forgot::after,
.af-auth-card .af-auth-btn::after {
    content: none;
    display: none;
    background: none;
    border: none;
    width: 0;
    height: 0;
}

.af-auth-card .ba-submit-btn:hover,
.af-auth-card .signup-submit:hover,
.af-auth-card .login-otp:hover,
.af-auth-card .login-pwd:hover,
.af-auth-card .pwd-change:hover,
.af-auth-card .request_otp_forgot:hover,
.af-auth-card .af-auth-btn:hover {
    filter: brightness(1.06);
    background: var(--af-auth-green);
}

.af-auth-card .ba-submit-btn:focus-visible,
.af-auth-card .signup-submit:focus-visible,
.af-auth-card .af-auth-btn:focus-visible {
    outline: 2px solid var(--af-auth-green-soft);
    outline-offset: 3px;
}

/*  "Login with password" on the OTP login screen */
.af-auth-card .af-auth-btn--secondary,
.af-auth-card .join_btn_new.af-auth-btn,
.af-auth-card .login-password.af-auth-btn {
    background: transparent;
    border: 1px solid var(--af-auth-outer-border);
    color: var(--af-auth-green) !important;
}

.af-auth-card .af-auth-btn--secondary:hover,
.af-auth-card .join_btn_new.af-auth-btn:hover,
.af-auth-card .login-password.af-auth-btn:hover {
    background: transparent;
    border-color: var(--af-auth-green);
    filter: none;
}

/* Actions stack */
.af-auth-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* ----------------------------
 * Footer link row 
 * --------------------------- */
.af-auth-card .ba-signUp-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-auth-footer-muted);
    text-transform: none;
    text-align: center;
}

.af-auth-card .ba-signUp-link p {
    margin: 0;
    color: var(--af-auth-footer-muted);
    font-size: 12px;
}

.af-auth-card .ba-signUp-link a {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-auth-green-soft);
    text-decoration: none;
    border: none;
}

.af-auth-card .ba-signUp-link a:hover {
    color: var(--af-auth-green);
    border: none;
    text-decoration: underline;
}

/* The "Login with password" pill on the OTP login screen  */
.af-auth-card .ba-signUp-link.with-pass {
    justify-content: center;
    margin-top: 0;
}

.af-auth-card .ba-signUp-link.with-pass .down-icon {
    display: none;
}


.af-auth-card .ba-submit-btn[disabled],
.af-auth-card .signup-submit[disabled],
.af-auth-card .login-otp[disabled],
.af-auth-card .login-pwd[disabled],
.af-auth-card .pwd-change[disabled],
.af-auth-card .request_otp_forgot[disabled] {
    cursor: not-allowed;
}

/* -------------------------------------------------------------
 * Responsive breakpoints (mirror legacy responsive.css)
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    .ba-login-signUp.af-auth-overlay {
        padding: 16px;
    }

    .af-auth-popup {
        padding: 12px;
        border-radius: 28px;
    }

    .af-auth-card {
        padding: 20px 16px;
        gap: 20px;
        border-radius: 18px;
    }

    .af-auth-card .ba-side-menu-head,
    .af-auth-popup > .ba-side-menu-head {
        top: 22px;
        right: 22px;
    }

    .af-auth-card .ba-back-btn,
    .af-auth-popup > .ba-side-menu-head .ba-back-btn {
        width: 28px;
        height: 28px;
    }

    .af-auth-card .ba-back-btn .ba-icon-style,
    .af-auth-popup > .ba-side-menu-head .ba-back-btn .ba-icon-style {
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }

    .af-auth-card__title {
        font-size: 18px;
        line-height: 22px;
    }

    .af-auth-card__subtitle {
        font-size: 13px;
        line-height: 18px;
    }

    .af-auth-card .countrycodes,
    .af-auth-card .af-auth-country {
        flex: 0 0 70px;
        width: 70px;
        min-width: 70px;
        height: 52px;
    }

    .af-auth-card .ba-number-login-box.af-auth-phone-row > input,
    .af-auth-card .ba-number-login-box.af-auth-field,
    .af-auth-card .af-auth-input-wrap {
        height: 52px;
        font-size: 16px;
        padding: 0 20px;
    }

    .af-auth-card .ba-otp-form {
        gap: 10px;
    }

    .af-auth-card .ba-otp-form input {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .af-auth-card .ba-submit-btn,
    .af-auth-card .signup-submit,
    .af-auth-card .login-otp,
    .af-auth-card .login-pwd,
    .af-auth-card .pwd-change,
    .af-auth-card .request_otp_forgot,
    .af-auth-card .af-auth-btn {
        min-height: 48px;
        font-size: 15px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .ba-login-signUp.af-auth-overlay {
        padding: 12px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .af-auth-popup {
        width: 100%;
        padding: 8px;
        border-radius: 24px;
    }

    .af-auth-card {
        padding: 18px 14px;
        gap: 18px;
        border-radius: 16px;
    }

    .af-auth-card .ba-side-menu-head,
    .af-auth-popup > .ba-side-menu-head {
        top: 18px;
        right: 18px;
    }

    .af-auth-card__header {
        gap: 12px;
    }

    .af-auth-logo__img {
        width: 86px;
    }

    .af-auth-card .countrycodes,
    .af-auth-card .af-auth-country {
        flex: 0 0 60px;
        width: 60px;
        min-width: 60px;
        height: 48px;
    }

    .af-auth-card .ba-number-login-box.af-auth-phone-row > input,
    .af-auth-card .ba-number-login-box.af-auth-field,
    .af-auth-card .af-auth-input-wrap {
        height: 48px;
        font-size: 15px;
        padding: 0 18px;
    }

    .af-auth-card .ba-otp-form {
        gap: 8px;
    }

    .af-auth-card .ba-otp-form input {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .af-auth-card .ba-submit-btn,
    .af-auth-card .signup-submit,
    .af-auth-card .login-otp,
    .af-auth-card .login-pwd,
    .af-auth-card .pwd-change,
    .af-auth-card .request_otp_forgot,
    .af-auth-card .af-auth-btn {
        min-height: 46px;
        font-size: 14px;
    }

    .af-auth-card .af-auth-caption,
    .af-auth-card .ba-signUp-link {
        font-size: 11px;
    }
}


.af-auth-card .ba-number-login-box .iti.iti--allow-dropdown {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}


.af-auth-card .ba-number-login-box.af-auth-field .af-auth-eye {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 8px;
    border: none;
    background: transparent;
    color: var(--af-auth-placeholder);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.af-auth-card .af-auth-eye svg {
    width: 22px;
    height: 22px;
}

.af-auth-card .af-auth-eye__closed {
    display: none;
}

.af-auth-card .af-auth-eye.is-visible .af-auth-eye__open {
    display: none;
}

.af-auth-card .af-auth-eye.is-visible .af-auth-eye__closed {
    display: inline-block;
}


.ba-login-signUp.login-with-pwd .af-auth-card .af-auth-caption {
    justify-content: flex-end;
    align-items: center;
    margin-top: -4px;
    padding: 0;
    gap: 8px;
}

.ba-login-signUp.login-with-pwd .af-auth-card .af-auth-caption__error {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--af-auth-error);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ba-login-signUp.login-with-pwd .af-auth-card .af-auth-caption__error:empty {
    display: none;
}

.ba-login-signUp.login-with-pwd .af-auth-card .af-auth-caption__link {
    flex: 0 0 auto;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-auth-green-soft);
    text-decoration: none;
    white-space: nowrap;
}

.ba-login-signUp.login-with-pwd .af-auth-card .af-auth-caption__link:hover {
    text-decoration: underline;
}


.af-auth-card .af-auth-btn--login-otp,
.af-auth-card .af-auth-btn--secondary {
    background: transparent;
    color: var(--af-auth-green) !important;
    border: 1px solid var(--af-auth-outer-border);
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;
    min-height: 46px;
    padding: 14px 24px;
    text-decoration: none;
    box-shadow: none;
}

.af-auth-card .af-auth-btn--login-otp::after,
.af-auth-card .af-auth-btn--secondary::after {
    content: none;
    display: none;
}

.af-auth-card .af-auth-btn--login-otp:hover,
.af-auth-card .af-auth-btn--secondary:hover {
    background: transparent;
    border-color: var(--af-auth-green);
    filter: none;
}

@media (max-width: 768px) {
    .af-auth-card .af-auth-btn--login-otp,
    .af-auth-card .af-auth-btn--secondary {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* --------------------------------------------------------------------------
 * Registration promo / signup bonus row (Figma updated-reg-modal)
 * -------------------------------------------------------------------------- */
.af-auth-card .af-auth-promo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
}

.af-auth-card .af-auth-promo__entry,
.af-auth-card .af-auth-promo__applied {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.af-auth-card .af-auth-promo__entry.d-none,
.af-auth-card .af-auth-promo__applied.d-none {
    display: none !important;
}

.af-auth-card .af-auth-promo__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 0 24px;
    background: var(--af-auth-field-bg);
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--af-auth-text);
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    outline: none;
    box-sizing: border-box;
}

.af-auth-card .af-auth-promo__input::placeholder {
    color: var(--af-auth-placeholder);
    opacity: 1;
}

.af-auth-card .af-auth-promo__input:focus {
    border-color: var(--af-auth-green);
}

.af-auth-card .af-auth-promo__apply {
    flex: 0 0 auto;
    min-width: 66px;
    height: 56px;
    margin: 0;
    padding: 16px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;
    color: var(--af-auth-green);
    cursor: pointer;
    text-align: center;
}

.af-auth-card .af-auth-promo__apply:hover:not(:disabled) {
    color: var(--af-auth-green-soft);
}

.af-auth-card .af-auth-promo__apply:disabled {
    opacity: 0.6;
    cursor: default;
}

.af-auth-card .af-auth-promo__applied-pill {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
    padding: 0 24px;
    background: var(--af-auth-field-bg);
    border-radius: 999px;
    box-sizing: border-box;
}

.af-auth-card .af-auth-promo__applied-label {
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: var(--af-auth-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-auth-card .af-auth-promo__applied-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.af-auth-card .af-auth-promo__applied-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.af-auth-card .af-auth-promo__applied-status {
    flex: 0 0 auto;
    min-width: 66px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;
    color: var(--af-auth-green);
    text-align: center;
}

.af-auth-card .af-auth-promo-error {
    margin: -4px 4px 0;
}

.af-auth-card .af-auth-promo-error:empty {
    display: none;
}

@media (max-width: 768px) {
    .af-auth-card .af-auth-promo__input,
    .af-auth-card .af-auth-promo__applied-pill,
    .af-auth-card .af-auth-promo__apply,
    .af-auth-card .af-auth-promo__applied-status {
        height: 52px;
    }

    .af-auth-card .af-auth-promo__applied-label {
        font-size: 16px;
        line-height: 20px;
    }
}

@media (max-width: 480px) {
    .af-auth-card .af-auth-promo__input,
    .af-auth-card .af-auth-promo__applied-pill,
    .af-auth-card .af-auth-promo__apply,
    .af-auth-card .af-auth-promo__applied-status {
        height: 48px;
    }

    .af-auth-card .af-auth-promo__input {
        padding: 0 18px;
        font-size: 15px;
    }

    .af-auth-card .af-auth-promo__applied-pill {
        padding: 0 18px;
    }
}

