.fe-auth-modal,
.fe-auth-modal * {
    box-sizing: border-box;
}

.fe-auth-modal {
    position: relative;
    width: 100%;
    max-width: 625px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

.fe-auth-modal .fe-auth-modal__inner {
    position: relative;
    background: #fff;
    padding: 35px 45px;
    overflow: visible;
    min-width: 500px;
    min-height: 0;
    height: auto;
}

.fe-auth-modal .fe-auth-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 58px;
    border: 0;
    background: #ececec;
    color: #111;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    z-index: 20;
    transition: background .2s ease, transform .2s ease;
}

.fe-auth-modal .fe-auth-modal__close:hover {
    background: #e2e2e2;
    transform: scale(1.02);
}

.fe-auth-modal .fe-auth-modal__logo {
    text-align: center;
    margin-bottom: 34px;
    padding-right: 18px;
}

.fe-auth-modal .fe-auth-modal__logo img {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: inline-block;
    object-fit: contain;
}

.fe-auth-modal .fe-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    align-items: flex-end;
}

.fe-auth-modal .fe-auth-tab {
    position: relative;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    margin-right: 25px;
    display: inline-block;
    padding: 0 0 15px;
    cursor: pointer;
    border-bottom: 2px solid rgba(0, 0, 0, 0);
    transition: .2s all ease-in-out;
    line-height: 1.2;
    font-weight: 400;
    color: #7a7a7a;
}

.fe-auth-modal .fe-auth-tab:hover {
    color: #1a1a1a;
}

.fe-auth-modal .fe-auth-tab.is-active {
    color: #2399ad;
    border-bottom-color: #2399ad;
}

.fe-auth-modal .fe-auth-tab.is-active::after {
    display: none;
}

@keyframes feAuthTabUnderline {
    from {
        transform: scaleX(.25);
        opacity: .3;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.fe-auth-modal .fe-auth-panels {
    position: relative;
    width: 100%;
    height: auto;
}

.fe-auth-modal .fe-auth-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.985);
    transition:
        opacity .34s ease,
        transform .34s ease,
        visibility .34s ease;
    pointer-events: none;
    z-index: 1;
}

.fe-auth-modal .fe-auth-panel.is-active {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 3;
}

.fe-auth-modal .fe-auth-form {
    width: 100%;
}

.fe-auth-modal .fe-auth-alert {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.45;
}

.fe-auth-modal .fe-auth-alert.is-error {
    display: block;
    background: #ffe7e7;
    color: #8c2323;
    border: 1px solid #efb8b8;
}

.fe-auth-modal .fe-auth-alert.is-success {
    display: block;
    background: #e7f8ea;
    color: #17612b;
    border: 1px solid #b9e1c3;
}

.fe-auth-modal .fe-auth-field {
    margin-bottom: 12px;
}

.fe-auth-modal .fe-auth-field--spaced {
    margin-top: 10px;
    margin-bottom: 28px;
}

.fe-auth-modal .fe-auth-field label {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.fe-auth-modal .fe-auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.fe-auth-modal .fe-auth-link {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    color: gray;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: .2s all ease-in-out;
    margin-bottom: 10px;
    line-height: 1.2;
    text-decoration: none;
}

.fe-auth-modal .fe-auth-link:hover {
    color: #4f4f4f;
}

.fe-auth-modal input[type="text"],
.fe-auth-modal input[type="email"],
.fe-auth-modal input[type="password"] {
    width: 100%;
    height: 50px;
    border: 1px solid #d2d9e3;
    border-radius: 4px;
    background: #edf4ff;
    padding: 0 18px;
    font-size: 16px;
    color: #111;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease;
}

.fe-auth-modal input::placeholder {
    color: #8f98a3;
    opacity: 1;
}

.fe-auth-modal input:focus {
    border-color: #2399ad;
    background: #f4f8ff;
}

.fe-auth-modal .fe-auth-password-wrap {
    position: relative;
}

.fe-auth-modal .fe-auth-password-wrap input {
    padding-right: 56px;
}

.fe-auth-modal .fe-auth-toggle-pass {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #6f6f6f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fe-auth-modal .fe-auth-toggle-pass .fe-icon-eye-slash {
    display: none;
}

.fe-auth-modal .fe-auth-toggle-pass.is-open .fe-icon-eye {
    display: none;
}

.fe-auth-modal .fe-auth-toggle-pass.is-open .fe-icon-eye-slash {
    display: inline-block;
}

.fe-auth-modal .fe-auth-submit {
    margin-top: 6px;
}

.fe-auth-modal .fe-auth-btn {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, background .2s ease;
}

.fe-auth-modal .fe-auth-btn:hover {
    transform: translateY(-1px);
}

.fe-auth-modal .fe-auth-btn:active {
    transform: translateY(0);
}

.fe-auth-modal .fe-auth-btn[disabled] {
    opacity: .7;
    cursor: wait;
}

.fe-auth-modal .fe-auth-btn--primary {
    background: #2399ad;
    color: #fff;
}

.fe-auth-modal .fe-auth-btn--primary:hover {
    background: #1e899a;
}

.fe-auth-modal .fe-auth-btn--gold {
    background: #c9a03c;
    color: #fff;
}

.fe-auth-modal .fe-auth-btn--gold:hover {
    background: #b48d32;
}

.fe-auth-modal.is-reset-view .fe-auth-tabs .fe-auth-tab {
    color: #7a7a7a;
}

.fe-auth-modal.is-reset-view .fe-auth-tabs .fe-auth-tab::after {
    display: none;
}

.fe-auth-modal .fe-auth-panel--reset input[type="text"] {
    background: #ffffff;
}
/******* add by sw ********/
#elementor-popup-modal-164107 a.dialog-close-button.dialog-lightbox-close-button {
    display: none !important;
}

/* =========================================================
   FIX POPUP ELEMENTOR
========================================================= */

#elementor-popup-modal-164107.dialog-widget.dialog-lightbox-widget,
#elementor-popup-modal-164107.elementor-popup-modal {
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.dialog-widget .dialog-widget-content,
.elementor-popup-modal .dialog-widget-content {
    display: flex;
    align-items: flex-start !important; /* clé */
    justify-content: center;
}

.fe-auth-modal {
    margin: 0 auto !important;
}

.fe-auth-modal .fe-auth-modal__inner {
    margin: 0 auto !important;
}

html.elementor-popup-modal-open,
body.elementor-popup-modal-open {
    overflow: hidden !important;
}

.elementor-popup-modal[style*="display: none"],
.dialog-widget[style*="display: none"],
.elementor-popup-modal[aria-hidden="true"],
.dialog-widget[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .fe-auth-modal .fe-auth-modal__inner {
        padding: 28px 20px 34px;
        min-width: 100%;
        min-height: 0;
        height: auto;
    }

    .fe-auth-modal .fe-auth-modal__logo {
        margin-bottom: 24px;
        padding-right: 10px;
    }

    .fe-auth-modal .fe-auth-tabs {
        gap: 0;
        margin-bottom: 26px;
    }

    .fe-auth-modal .fe-auth-tab {
        font-size: 18px;
    }

    .fe-auth-modal .fe-auth-field label {
        font-size: 16px;
    }
}