.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
}

.login-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-width: 0; /* Для правильной работы flexbox */
}

.cabinet, .video-cabinet {
    width: 100%;
    max-width: 400px; /* Одинаковая максимальная ширина для обоих контейнеров */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: white;
    overflow: hidden;
}

.cabinet {
    padding: 25px; /* Отступы для формы */
    display: flex;
    flex-direction: column;
    /* Убираем фиксированную высоту, позволяя контейнеру иметь естественный размер */
}

/* Стили для видео-контейнера */
.video-cabinet {
    position: relative;
    /* Высота будет установлена динамически через JavaScript */
}

.video-cabinet video {
    width: 100%;
    display: block;
    border-radius: 8px;
    pointer-events: none; /* Отключаем все взаимодействия */
}

.sound-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
}

/* Стили для модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.modal-btn-primary {
    background-color: #4285f4;
    color: white;
}

.modal-btn-secondary {
    background-color: #f1f1f1;
    color: #333;
}

/* Стили для iframe контейнера */
.iframe-container {
    width: 100%;
    height: 100%; /* Изменено для соответствия высоте контейнера */
    position: relative;
    overflow: hidden; /* Скрываем все, что может выходить за пределы */
    border-radius: 8px;
    background-color: white;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Отключаем взаимодействие с iframe */
    user-select: none; /* Запрещаем выделение содержимого */
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-column:last-child {
        display: none;
    }
}