/* ==== Общий стиль ==== */
body {
    font-family: Arial, sans-serif;
    background-image: url("{{ url_for('static', filename='images/background.jpg') }}");
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    padding-top: 50px; /* Оставляем верхний отступ */
    padding-bottom: 100px; /* Увеличиваем нижний отступ */
    display: flex; /* Добавляем flexbox */
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center; /* Центрируем по вертикали */
    min-height: 100vh; /* Занимаем всю высоту экрана */
}

/* ==== Карточка центра ==== */
.container {
    width: 400px;
    padding: 20px;
    background-color: rgba(42, 42, 42, 0.6);
    background-color: #111111;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    display: flex; /* Добавляем flexbox */
    flex-direction: column; /* Размещаем элементы в колонку */
    align-items: center; /* Центрируем элементы по горизонтали */
    margin-top: 40px; /* Добавляем отступ сверху */
}

/* ==== Поля ввода ==== */
input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background-color: #a7a7a7;
}

input:focus {
    outline: none; /* Убираем обводку при фокусе */
    background-color: #fff; /* Белый фон при фокусе */
}

/* ==== Кнопки ==== */
button {
    width: 100%;
    padding: 10px;
    background-color: #0b2743;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #0e3154; /* Изменен цвет кнопки при наведении */
}

/* ==== Спиннер (анимация загрузки) ==== */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==== Сообщение об ошибке ==== */
.error {
    color: red;
    font-size: 14px;
}