/* WellnessDrop authorization modals */
.elementor-popup-modal .dialog-widget-content:has(.fds-login-modal),
.elementor-popup-modal .dialog-widget-content:has(.fds-register-form) {
    width: 660px;
    max-width: calc(100vw - 32px);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.elementor-popup-modal .dialog-message:has(.fds-login-modal),
.elementor-popup-modal .dialog-message:has(.fds-register-form) {
    width: 100%;
    padding: 0;
    /*overflow: visible;*/
}

.elementor-popup-modal .dialog-close-button {
    top: 44px;
    right: 36px;
    color: #1e2129;
    font-size: 24px;
    opacity: .75;
}

.elementor-popup-modal .dialog-close-button:hover {
    color: #1e2129;
    opacity: 1;
}

.fds-login-modal,
.fds-register-form {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    color: #1e2129;
    font-family: 'Manrope', sans-serif;
}

.fds-login-form,
.fds-register-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fds-login-form__title {
    margin: 0;
    color: #1e2129;
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.fds-login-form__description,
.fds-login-form__bottom-text {
    margin: 10px 0 10px;
    max-width: none;
    color: #1e2129;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

.fds-login-form__description a,
.fds-login-form__bottom-text a,
.fds-login-form__forgot,
.fds-register-form .fds-login-form__checkbox-text a {
    color: #1e2129;
    font-weight: 700;
    text-decoration: none;
}

.fds-login-form__description a:hover,
.fds-login-form__bottom-text a:hover,
.fds-login-form__forgot:hover,
.fds-register-form .fds-login-form__checkbox-text a:hover {
    color: #4aa174;
    text-decoration: none;
}

.fds-login-form__field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fds-login-form__label {
    display: none;
}
.fds-login-modal
.fds-login-form__input {
    width: 100%;
    min-height: 64px;
    padding: 18px 20px;
    border: 0;
    border-radius: 18px;
    background: #fafafa;
    color: #1e2129;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    transition: background .2s ease, box-shadow .2s ease;
}
.fds-login-modal
.fds-login-form__input::placeholder {
    color: #727272;
    opacity: 1;
}
.fds-login-modal
.fds-login-form__input:focus {
    background: #f7f7f7;
    box-shadow: 0 0 0 1px rgba(74, 161, 116, .35);
}
.fds-login-modal
.fds-login-form__input.is-invalid {
    box-shadow: 0 0 0 1px #ff7f7f;
}

.fds-login-form__password-wrap {
    position: relative;
}

.fds-login-modal .fds-login-form__toggle,
.fds-register-form .fds-login-form__toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #605f5f;
    cursor: pointer;
    box-shadow: none;
}

.fds-login-modal .fds-login-form__toggle svg,
.fds-register-form .fds-login-form__toggle svg {
    display: none;
}

.fds-login-modal .fds-login-form__toggle-icon,
.fds-register-form .fds-login-form__toggle-icon {
    display: block;
    font-size: 18px;
    line-height: 1;
}
.fds-login-modal
.fds-login-form__input--password {
    padding-right: 58px;
}

/* Hide native browser password reveal icon to avoid double eye icons */
.fds-login-modal .fds-login-form__input--password::-ms-reveal,
.fds-login-modal .fds-login-form__input--password::-ms-clear,
.fds-register-form .fds-login-form__input--password::-ms-reveal,
.fds-register-form .fds-login-form__input--password::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.fds-login-modal .fds-login-form__input--password::-webkit-credentials-auto-fill-button,
.fds-register-form .fds-login-form__input--password::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

.fds-login-form__error {
    min-height: 0;
    margin-top: 4px;
    color: #d94c4c;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.fds-login-form__alert {
    display: none;
    padding: 12px 16px;
    border-radius: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.fds-login-form__alert.is-visible {
    display: block;
}

.fds-login-form__alert.is-error {
    background: rgba(255, 87, 87, .08);
    color: #d94c4c;
    border: 1px solid rgba(255, 87, 87, .22);
}

.fds-login-form__alert.is-success {
    background: rgba(74, 161, 116, .1);
    color: #2f7c58;
    border: 1px solid rgba(74, 161, 116, .22);
}

.fds-login-form__forgot-wrap,
.fds-login-form__checkbox-wrap {
    margin: 0;
}

.fds-login-form__row,
.fds-login-form__remember-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fds-login-form__forgot {
    font-size: 16px;
    line-height: 1.5;
}

.fds-register-form .fds-login-form__checkbox-wrap {
    margin-top: 0;
}

.fds-register-form .fds-login-form__checkbox-label,
.fds-login-form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #605f5f;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}
.fds-login-modal
.fds-login-form__checkbox
,
.fds-register-form
.fds-login-form__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fds-register-form .fds-login-form__checkbox-box,
.fds-login-form__checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 0;
    border: 1px solid #a4a4a4;
    border-radius: 5px;
    background: #ffffff;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    opacity: 1;
    transition: background .2s ease, border-color .2s ease;
}

.fds-register-form .fds-login-form__checkbox:checked + .fds-login-form__checkbox-box,
.fds-login-form__checkbox:checked + .fds-login-form__checkbox-box {
    border-color: #4aa174;
    background: #4aa174;
}

.fds-register-form .fds-login-form__checkbox:checked + .fds-login-form__checkbox-box::before,
.fds-login-form__checkbox:checked + .fds-login-form__checkbox-box::before {
    content: '✓';
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.fds-login-form__submit {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 16px 28px;
    border: 0;
    border-radius: 16px;
    background: #4aa174;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: opacity .2s ease, transform .2s ease;
}

.fds-login-form__submit:hover,
.fds-login-form__submit:focus {
    background: #4aa174;
    color: #ffffff;
    opacity: .92;
    transform: none;
    box-shadow: none;
}

.fds-login-form__submit.is-loading {
    opacity: .7;
    pointer-events: none;
}

.fds-login-form__submit-arrow {
    display: none;
}

.fds-login-form__logged-in {
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(74, 161, 116, .1);
    color: #2f7c58;
}

@media (max-width: 767px) {
    .elementor-popup-modal .dialog-widget-content:has(.fds-login-modal),
    .elementor-popup-modal .dialog-widget-content:has(.fds-register-form) {
        width: calc(100vw - 24px);
        border-radius: 18px;
    }

    .elementor-popup-modal .dialog-close-button {
        top: 28px;
        right: 24px;
    }

    .fds-login-modal,
    .fds-register-form {
        padding: 32px 20px 24px 0;
        border-radius: 18px;
    }

    .fds-login-form,
    .fds-register-form {
        gap: 18px;
    }

    .fds-login-form__title {
        font-size: 30px;
    }

    .fds-login-form__input {
        min-height: 58px;
        border-radius: 16px;
    }

    .fds-login-form__submit {
        min-height: 58px;
    }

    .fds-login-form__row,
    .fds-login-form__remember-forgot {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}