/* Основной фон */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-size: cover;
    color: #fff;
}

/* Заголовки */
h2, h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

/* Контейнер для формы */
.container {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    transition: all 0.3s ease; /* Плавные переходы */
}

/* Стиль модального окна */
.modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 400px;
    max-width: 400px;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: all 0.3s ease; /* Плавное появление */
}

/* Кнопки модального окна */
.modal-footer .btn {
    font-size: 1.1rem;
    padding: 12px 20px;
    width: 48%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-footer .btn-secondary {
    background-color: #bbb;
    border-color: #aaa;
}

.modal-footer .btn-primary {
    background-color: #2575fc;
    border-color: #2575fc;
}

.modal-footer .btn:hover {
    background-color: #6a11cb; /* Более светлый оттенок */
    transform: scale(1.05); /* Легкая анимация на hover */
}

/* Стиль для ввода */
.form-control, select {
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus, select:focus {
    border-color: #2575fc; 
    box-shadow: 0 0 10px rgba(37, 117, 252, 0.4); 
}

/* Кнопка */
.btn-primary {
    background-color: #2575fc;
    border-color: #2575fc;
    padding: 15px 20px;
    width: 100%;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #6a11cb; 
    transform: scale(1.05); 
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h2 {
        font-size: 2rem;
    }

    .btn-primary {
        font-size: 1rem;
    }
}
