
.popup-overlay {
    display: none; /* Скрыть попап по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.popup {
    display: flex;
    width: 760px;
    height: 676px;
    background-color: #1C2539;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.popup-left {
    width: 400px;
    background: url('../imgp/main.jpg') no-repeat center center/cover;
    position: relative;
}

.popup-left .left-content {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
}

.popup-left h1 {
    font-size: 32px;
    margin: 0;
    margin-right: 20px;
}

.bonus-toggle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 0px 10px 10px;
    border-radius: 8px;
    color: #fff;
    width: 340px;
    justify-content: space-between;
}

.bonus-toggle span {
    margin-right: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #9948FF;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.popup-right {
    flex: 1;
    padding: 20px;
    color: #fff;
    background-color: #1C2539;
    position: relative;
}

.popup-right .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.popup-right h2 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.popup-right form {
    display: flex;
    flex-direction: column;
}

.popup-right .input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.popup-right input {
    padding: 10px;
    border: 1px solid #444E65;
    border-radius: 8px;
    background-color: #333B4C;
    color: #fff;
    width: 300px;
    height: 26px;
}

.popup-right input.invalid {
    border-color: #FE5D5D;
}

.error-message {
    color: #FE5D5D;
    display: none;
}

.requirements {
    display: none;
    margin-top: -10px;
    margin-bottom: 20px;
}

.requirement {
    color: #79849B;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.requirement .icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.eye-icon {
    position: relative;
    left: 290px;
    top: 10%;
    transform: translateY(-163%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
}

.promo-code {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-top: -30px;
}

.promo-code input[type="checkbox"] {
    margin-right: 10px;
    position: relative;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    background: #1C2539;
    border: 2px solid #79849B;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.promo-code input[type="checkbox"]:checked {
    background-color: #9948FF;
    border-color: #9948FF;
}

.promo-code input[type="checkbox"]:checked:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.promo-code label {
    color: #fff;
    margin-top: 0px;
}

#promo-code-wrapper {
    margin-bottom: 20px; /* Добавлен отступ */
    display: none;
}

.popup-right button {
    padding: 15px;
    background-color: #ff7c1e;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.popup-right button:disabled {
    background-color: #333B4C;
    cursor: not-allowed;
    color: #525B6E;
}

.popup-right p {
    font-size: 12px;
    color: #79849B;
}

.popup-right p a {
    color: #BB85FF;
    text-decoration: none;
}

.divider {
    display: flex;
    align-items: center;
    color: #79849B;
    margin: 20px 0;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333B4C;
}

.divider:not(:empty)::before {
    margin-right: .25em;
}

.divider:not(:empty)::after {
    margin-left: .25em;
}

.login span {
    color: #79849B;
}

.login a {
    color: #CCCCCC;
    text-decoration: none;
}

.popup-header-mobile {
    display: none; /* Показать на мобильных устройствах */
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .popup {
        width: 375px;
        height: auto;
        flex-direction: column;
    }

    .popup-header-mobile {
        display: flex; /* Показать на мобильных устройствах */
        width: 93%;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #1C2539;
        color: #fff;
    }

    .mobile-title {
        font-size: 18px;
    }

    .popup-left {
        width: 100%;
        height: 168px;
        background: url('../imgp/mobmain.jpg') no-repeat center center/cover;
    }

    .popup-left .left-content {
        top: auto;
        left: 20px;
        bottom: 80px;
    }

    .popup-right {
        padding: 20px;
    }

    .popup-right .close-btn {
        display: none; /* Скрыть кнопку закрытия внутри popup-right */
    }

    .popup-right h2 {
        display: none; /* Скрыть заголовок внутри popup-right */
    }

    .popup-right input {
        width: 93%;
    }

    .eye-icon {
        left: auto;
        right: -300px;
        transform: translateY(-165%);
    }

    .bonus-toggle {
        position: absolute;
        bottom: 20px;
        left: 20px;
        width: 86%;
    }

    .popup-left h1 {
        font-size: 28px;
    }

    .close-btn-mobile {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }
}
