/* Основные стили для всей страницы */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #00c6ff, #0072ff); /* Градиентный фон */
    color: #fff;
    text-align: center;
}

/* Стили для контейнера */
#continer_background {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#container {
    background: #282c34; /* Темный фон для контейнера */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: auto;
}

/* Стили для заголовков */
h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #fff;
}

/* Стили для полей ввода */
input[type="text"], input[type="password"], input[type="email"] {
    width: 80%; /* Увеличиваем ширину поля */
    padding: 12px; /* Внутренние отступы */
    margin: 10px 0; /* Отступы между полями */
    border: 1px solid #0072ff; /* Граница поля */
    border-radius: 5px; /* Скругленные углы */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Легкая тень */
    background-color: #fff; /* Белый фон */
    color: #333; /* Цвет текста */
    font-size: 1em;
    outline: none; /* Убираем стандартную обводку */
    transition: box-shadow 0.3s, border-color 0.3s;
}

/* Эффекты при фокусе на поле ввода */
input[type="text"]:focus, input[type="password"]:focus {
    box-shadow: 0px 4px 8px rgba(0, 114, 255, 0.5);
    border-color: #005bb5;
}

/* Стили для чекбокса и текста */
input[type="checkbox"] {
    margin-right: 10px;
}

label {
    font-size: 0.9em;
    color: #ccc;
}

/* Стили для кнопки */
.button-29 {
    background-color: #0072ff;
    border: none;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button-29:hover {
    background-color: #005bb5;
}

/* Стили для изображения */
#logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    #container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    input[type="text"], input[type="password"] {
        width: 90%;
    }

    #logo {
        width: 120px;
    }
}


/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    opacity: 0;
    transition: opacity 0.5s ease; /* Плавное появление */
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease; /* Анимация для плавного появления */
}

@keyframes fadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Стили текста в модальном окне */
.modal-content p {
    color: #333; /* Темный текст */
    font-size: 1.1em;
}




/* Стили для контейнера чекбокса */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Выровнять по центру */
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Стили для чекбокса */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0072ff;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px; /* Отступ между чекбоксом и текстом */
}

input[type="checkbox"]:checked {
    background-color: #0072ff;
    border-color: #005bb5;
}

input[type="checkbox"]:checked::before {
    content: '✔';
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Стили для label */
.checkbox-container label {
    color: #ccc;
    font-size: 0.9em;
    cursor: pointer;
    transition: color 0.3s;
}

.checkbox-container input[type="checkbox"]:checked + label {
    color: #fff;
}
