#tl-booking-alert {
    background: #6b2360;
    color: #fff;
    margin: 0;
    display: block;
    flex-wrap: wrap;
    justify-content: center;
}

#tl-booking-alert p {
    color: #fff;
    margin: 22px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#tl-booking-alert span {
    display: inline-flex;
    margin: 2px 0;
}

#tl-booking-alert a {
    border: 0;
    padding: 0;
    font-family: Arial;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    /*text-transform: none;*/
    letter-spacing: normal;
    color: #ded0dc;
    display: inline-flex;
    margin: 0 5px;
}

#tl-booking-alert a:hover {
    color: #fff;
}

.popup_secsess input[type=text] {
    color: black;
    display: block;
    width: 100%;
    font-size: 18px;
    height: 38px;
    margin: 0;
    padding: 0 4px;
    border: 1px solid #CCD5DB;
    border-radius: 2px;
    background: #f8fafc;
    outline: none;
}

.popup_secsess input[type=password] {
    color: black;
    display: block;
    width: 100%;
    font-size: 18px;
    height: 38px;
    margin: 0;
    padding: 0 4px;
    border: 1px solid #CCD5DB;
    border-radius: 2px;
    background: #f8fafc;
    outline: none;
}

.bx-authform-formgroup-container {
    margin-bottom: 20px;
}

.bx-authform-label-container {
    font-size: 13px;
    color: #5a6c77;
    padding-bottom: 2px;
}

.popup_secsess_text {
    padding: 87px 30px 60px 30px !important;
}

.error {
    color: #f42c2c !important;
    border-color: #f42c2c !important;
}

.error_div_auth {
    display: none;
    color: #f42c2c !important;
    text-align: center;
}

.bx-authform-link-container a b {
    color: #53575a;
    font-family: Arial;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

#popup_booking_reg, #popup_booking_auth {
    z-index: 1000;
}

.bx-filter-param-text {
    color: #5a6c77;
}

.agree_input {
    width: auto;
    margin-right: 15px;
    height: 18px;
}

.agree_label {
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 40px ;
    color: #868F99;
}

.agree_label a {
    color: #5a6c77;
}

.agree_container {
    display: inline-flex;
}

.iti__selected-flag {
    top: 10px !important;
    height: 36px !important;
}

.iti__selected-country {
    padding-top: 4px;
}

.password-wrapper {
    position: relative;
}

#password, #password_confirm {
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.eye-icon {
    font-size: 16px;
    display: inline-block;
    transition: transform 0.2s ease;
    cursor: pointer;
}

#tl-booking-alert p {
    margin: 2px 0;
}

#tl-booking-alert {
    padding-top: 18px;
    padding-bottom: 18px;
}

#tl-booking-alert p {
    font-size: 18px;
}

#tl-booking-alert a {
    font-size: 18px;
}

body.modal-open {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.modal-open .modal__container.is-active {
    opacity: 1;
    visibility: inherit;
    transition: opacity .4s, visibility .4s;
}

.modal__content {
    grid-column-start: content-start;
    grid-column-end: content-end;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 1.2rem;
    pointer-events: none;
}

.modal__container {
    display: flex;
    justify-content: center; /* горизонтально */
    align-items: center; /* вертикально */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 120;
    background-color: #000c;
    overscroll-behavior-y: contain;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility 0s linear .4s;
}

.modal__wrapper {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: var(--dark-text);
    border-radius: 1rem;
    padding: 2rem;
    gap: 5rem;
    pointer-events: auto;
}


/* Section Layout */

.login-section {

    position: relative;

    width: 100%;

    min-height: 100vh; /* Full viewport height */

    max-width: 1366px; /* Based on Figma root width */

    margin: 0 auto;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

}


/* Background Handling */

.background-container {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 0;

}


.bg-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

}


.bg-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.8); /* From Figma fills opacity */

    z-index: 1;

}


/* Close Button */

.close-button {

    position: absolute;

    top: 34px;

    right: 40px; /* Approx based on 1294x position in 1366w */

    width: 32px;

    height: 32px;

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 20;

    padding: 0;

    background: transparent;

    transition: opacity 0.2s;

}


.close-button:hover {

    opacity: 0.8;

    background-color: rgba(255, 255, 255, 0.1);

}


/* Modal Card */

.modal-card {

    position: relative;

    z-index: 10;

    width: 422px;

    background-color: #ffffff;

    border-radius: 10px;

    padding: 40px 26px; /* Calculated from absolute positions */

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

}


.modal-content {
    font-family: 'Manrope', sans-serif;
    display: flex;

    flex-direction: column;

    width: 100%;

}


/* Typography */

.modal-title {

    font-family: TT Ramillas, serif; /* Serif font as seen in image */

    font-size: 32px; /* Estimated from 72px height container */

    line-height: 1.1;

    color: #24292f;

    margin: 0 0 15px 0;

    font-weight: 400;

}


.modal-subtitle {

    font-size: 14px;

    color: #24292f;

    margin: 0 0 40px 0;

}


.modal-subtitle__link {

    color: #4E1C54;

    text-decoration: underline;

    border-bottom: 1px solid transparent;

    transition: border-color 0.2s;
    cursor: pointer;

}


.modal-subtitle__link:hover {

    border-bottom-color: #868f99;

}


/* Form Styles */

.login-form {

    display: flex;

    flex-direction: column;

    width: 100%;

}


.input-group {

    margin-bottom: 20px;

    position: relative;

    width: 100%;

}


.visually-hidden {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}


.form-input {

    width: 100%;

    padding: 10px 0;

    font-size: 16px;

    color: #353a41; /* style_13 */

    border: none;

    border-bottom: 1px solid rgba(53, 58, 65, 0.1); /* style_14/15 border */

    background: transparent;

    outline: none;

    transition: border-color 0.2s;

}


.form-input::placeholder {

    color: #353a41;

    opacity: 1;

}


.form-input:focus {
    border-bottom-color: #353a41;
}


.forgot-password-wrapper {
    margin-top: -10px; /* Adjusting for spacing */
    margin-bottom: 40px;
    text-align: right;
}


a.link-forgot {

    font-size: 14px;

    color: #868f99;

    text-decoration: underline;

}


.link-forgot:hover {

    text-decoration: underline;

}


/* Submit Button */

.submit-btn {

    width: 100%;

    height: 34px;

    background-color: #766B2C; /* style_6 */

    color: #ffffff; /* style_7 */

    border-radius: 100px;

    font-size: 14px;

    font-weight: 500;

    display: flex;

    justify-content: center;

    align-items: center;

    transition: background-color 0.2s;

}

.submit-btn:disabled {
    background-color: #868f99;
}


.submit-btn:hover {

    background-color: #C6BC83;

}


/* Responsive Adjustments */

@media (max-width: 480px) {

    .modal-card {

        width: 90%;

        padding: 30px 20px;

    }


    .close-button {

        top: 20px;

        right: 20px;

    }

}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Активный лоадер */
.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
}

.floating-label {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label input {
    width: 100%;
    padding: 1rem 0.5rem 0.5rem;
    background: transparent;
}

.floating-label label {
    position: absolute;
    top: 1rem;
    left: 0.5rem;
    color: #353A41;
    /*font-size: 1rem;*/
    font-weight: bold;
    pointer-events: none;
    transition: 0.2s ease all;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.4rem;
    font-size: 1rem;
    color: #8C959F;
    background: white;
    padding: 0 0.25rem;
}

.login-form, .reset-form, .register-form {
    position: relative;
}

.error-message {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #e74c3c;
    font-size: 1.4rem;
    display: none;
}


.input-group.floating-label .iti {
    width: 100%;
}

.input-group.floating-label .iti input {
    width: 100%;
    padding-left: 3.5rem;
}

.iti__flag.iti__globe {
    display: none;
}

.floating-label.label-fixed label {
    top: -0.5rem;
    left: 0.4rem;
    font-size: 1rem;
    color: #8C959F;
    background: white;
    padding: 0 0.25rem;
}

.agree-label {
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 50px ;
    color: #868F99;
}

.agree-label a:hover {
    text-decoration: underline;
}

.password-rules {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #868F99;
}

#reset-modal .modal-subtitle {
    color: #868F99;
}

.reset-email-input {
    margin-bottom: 40px;
}

#reset-modal .error-message {
    bottom: 85px;
}