/* Genelevation + OneListing/Directorist authentication cleanup. */
.theme-authentication-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 520px;
}

/* One visual card only: OneListing's Bootstrap card owns the modal surface. */
.theme-authentication-modal .modal-content {
    overflow: hidden;
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .22) !important;
}

.theme-authentication-modal .modal-body {
    padding: 0 !important;
}

.theme-authentication-modal .directorist-w-100,
.theme-authentication-modal .directorist-container,
.theme-authentication-modal .directorist-container-fluid,
.theme-authentication-modal .directorist-row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.theme-authentication-modal .directorist-authentication {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
}

/* Prevent the inactive login/signup form from producing the stacked-card look. */
.theme-authentication-modal .directorist-authentication:not(.active) {
    display: none !important;
}

.theme-authentication-modal .directorist-authentication.active {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.theme-authentication-modal .directorist-authentication__form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 30px 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Keep the close control in exactly the same top-right position for both
   the Sign In and Register states of OneListing's shared authentication modal. */
.theme-authentication-modal .modal-body {
    position: relative !important;
}

.theme-authentication-modal .theme-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 20 !important;
}

/* Profile Type selector, intentionally similar to Vocalizr's compact "I am a" row. */
.ge-signup-profile-type {
    margin: 0 0 15px !important;
    padding: 0;
    border: 0;
}

.ge-signup-profile-type__legend {
    float: none;
    width: auto;
    margin: 0 0 5px;
    padding: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    color: #262626;
}

.ge-signup-profile-type__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.ge-signup-profile-type__choice {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    cursor: pointer;
    color: #3e3e3e !important;
    font-size: 15px;
    font-weight: 400 !important;
}

.ge-signup-profile-type__choice input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-primary, var(--directorist-color-primary, #111));
}

/* Keep the Directorist registration form comfortably sized on phones. */
@media (max-width: 575px) {
    .theme-authentication-modal .directorist-authentication__form {
        padding: 28px 22px 24px !important;
    }

    .ge-signup-profile-type__choices {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* v0.2.3 compact Genelevation authentication spacing. */
.theme-authentication-modal .theme-modal-wrap,
.theme-authentication-modal .atbdp_login_form_shortcode {
    padding: 8px 30px 14px !important;
}

.theme-authentication-modal .directory_register_form_wrap .theme-modal-wrap {
    padding-bottom: 6px !important;
}

.theme-authentication-modal .theme-modal-bottom {
    padding: 0 30px 16px !important;
    margin: 0 !important;
    text-align: left;
}

.theme-authentication-modal .theme-modal-bottom p,
.theme-authentication-modal .directory_regi_btn p {
    margin: 0 !important;
}

.theme-authentication-modal .directorist-form-group.directorist-mb-15,
.theme-authentication-modal .directorist-checkbox.directorist-mb-15,
.theme-authentication-modal .directorist-radio.directorist-mb-15 {
    margin-bottom: 11px !important;
}

.theme-authentication-modal .directorist-form-group label,
.theme-authentication-modal .ge-signup-profile-type__legend {
    margin-bottom: 4px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

.theme-authentication-modal .directorist-form-element {
    min-height: 44px !important;
    height: 44px !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
}

.theme-authentication-modal textarea.directorist-form-element {
    height: auto !important;
    min-height: 90px !important;
}

.theme-authentication-modal .theme-register-btn .directorist-btn,
.theme-authentication-modal .atbd_login_btn_wrapper .directorist-btn {
    min-height: 46px;
    width: 100%;
    border-radius: 5px !important;
    font-weight: 600;
}

.theme-authentication-modal .atbd_privacy_policy_area a,
.theme-authentication-modal .atbd_term_and_condition_area a,
.theme-authentication-modal .theme-modal-bottom a,
.theme-authentication-modal .atbdp_recovery_pass {
    color: var(--ge-brand-gold, #b8860b) !important;
}

.theme-authentication-modal .atbd_privacy_policy_area a:hover,
.theme-authentication-modal .atbd_term_and_condition_area a:hover,
.theme-authentication-modal .theme-modal-bottom a:hover,
.theme-authentication-modal .atbdp_recovery_pass:hover {
    color: var(--ge-brand-gold, #b8860b) !important;
}

@media (max-width: 575px) {
    .theme-authentication-modal .theme-modal-wrap,
    .theme-authentication-modal .atbdp_login_form_shortcode {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    .theme-authentication-modal .theme-modal-bottom {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}


/* v0.2.5: tighten current Directorist 8.x signup spacing to a compact Vocalizr-style rhythm. */
.theme-authentication-modal .directorist-registration-wrapper .directorist-authentication__form {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-mb-35 {
    margin-bottom: 15px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-mb-30 {
    margin-bottom: 13px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-mb-20 {
    margin-bottom: 10px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-mb-15 {
    margin-bottom: 11px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .ge-signup-profile-type {
    margin-bottom: 15px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directory_regi_btn.directorist-authentication__form__toggle-area {
    margin-top: 2px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-checkbox__label {
    line-height: 1.35 !important;
}


/* v0.2.7: darker Genelevation gold + compact signup rhythm. */
.theme-authentication-modal .ge-auth-brand {
    padding: 13px 30px 0 !important;
}

.theme-authentication-modal .ge-auth-brand img {
    max-height: 50px !important;
}

/* Pull the first field closer to the wordmark and remove excess vertical air. */
.theme-authentication-modal .directorist-registration-wrapper .directorist-authentication__form {
    padding-top: 2px !important;
    padding-bottom: 14px !important;
}

.theme-authentication-modal .directory_register_form_wrap .theme-modal-wrap,
.theme-authentication-modal .directorist-registration-wrapper .theme-modal-wrap {
    padding-top: 2px !important;
    padding-bottom: 5px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-mb-35 {
    margin-bottom: 10px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-mb-30 {
    margin-bottom: 10px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-mb-20 {
    margin-bottom: 8px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-mb-15,
.theme-authentication-modal .directorist-registration-wrapper .directorist-form-group.directorist-mb-15,
.theme-authentication-modal .directorist-registration-wrapper .directorist-checkbox.directorist-mb-15 {
    margin-bottom: 8px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .ge-signup-profile-type {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .ge-signup-profile-type__choices {
    gap: 7px 15px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-form-group label,
.theme-authentication-modal .directorist-registration-wrapper .ge-signup-profile-type__legend {
    margin-bottom: 3px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directorist-form-element {
    min-height: 42px !important;
    height: 42px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .atbd_privacy_policy_area,
.theme-authentication-modal .directorist-registration-wrapper .atbd_term_and_condition_area {
    margin-top: 0 !important;
    margin-bottom: 7px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .theme-register-btn {
    margin-top: 9px !important;
    margin-bottom: 0 !important;
}

.theme-authentication-modal .directorist-registration-wrapper .theme-register-btn .directorist-btn {
    min-height: 44px !important;
}

.theme-authentication-modal .directorist-registration-wrapper .directory_regi_btn.directorist-authentication__form__toggle-area {
    margin-top: 6px !important;
    padding-top: 0 !important;
}

@media (max-width: 575px) {
    .theme-authentication-modal .ge-auth-brand {
        padding: 12px 22px 0 !important;
    }

    .theme-authentication-modal .directorist-registration-wrapper .directorist-authentication__form {
        padding-top: 2px !important;
        padding-bottom: 13px !important;
    }
}
