/* Настройки страницы */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
    /* Добавляем картинку вместо серого фона #f4f4f4 */
    background-image: url('ehkzoticheskie-zhivotnye-doma.jpg'); 
    background-size: cover;                    /* Растянуть на весь экран */
    background-position: center;               /* Отцентрировать */
    background-repeat: no-repeat;              /* Не дублировать */
    background-attachment: fixed;              /* Зафиксировать при скролле */
}

/* Главный контейнер */
.page-container {
    background: rgba(255, 255, 255, 0.95); /* Слегка прозрачный белый фон для красоты */
    border: 1px solid #333;
    width: 500px;
    padding: 40px 30px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Тень для объема */
}

/* Текстовые блоки (сверху и снизу) */
.info-text, .footer-text {
    font-size: 14px;
    margin: 0 auto 15px;
    max-width: 90%;
    color: #555;
}
.footer-text { margin: 40px auto 0; } /* Смещение для нижнего текста */

/* Заголовки форм */
.form-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 25px; /* Увеличили отступ снизу заголовка */
    font-size: 18px;
    letter-spacing: 1px;
}

/* Синяя рамка формы (для авторизации) */
.auth-box {
    border: 1px solid #4a76a8;
    padding: 25px 20px 15px;
}

/* --- ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ИСПРАВЛЕНИЯ СЛИТНОСТИ В REG.PHP --- */

/* Контейнер для поля, лейбла и подсказки */
.input-group {
    display: flex;
    flex-direction: column; /* Элементы теперь друг под другом, а не в одну слипшуюся строку */
    align-items: flex-start;
    margin-bottom: 20px; /* Увеличенный отступ между блоками полей */
}

/* Надписи к полям (Имя, Фамилия и т.д.) */
.input-group label {
    width: 100%;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px; /* Отступ между названием поля и самим инпутом */
    color: #333;
}

/* Поля ввода (текст, почта, файлы) */
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="file"] {
    width: 100%;
    height: 34px; /* Сделали поля чуть выше и удобнее для клика */
    border: 1px solid #b3b3b3;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 14px;
    border-radius: 4px; /* Легкое округление углов */
    transition: border-color 0.2s;
}

/* Поля типа file настраиваем отдельно, чтобы не сжимались */
.input-group input[type="file"] {
    padding: 5px 0;
    height: auto;
    border: none;
}

/* Эффект при клике на поле */
.input-group input:focus {
    border-color: #4a76a8;
    outline: none;
}

/* Мелкий текст-подсказка под полями */
.hint {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px; /* Отступ от поля до подсказки */
    text-align: left;
}

/* Группа с кнопкой */
.btn-group {
    margin-top: 25px;
    text-align: center;
}

/* Красивая кнопка отправки */
.btn-group button {
    background-color: #4a76a8;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; /* Кнопка во всю ширину формы */
    transition: background-color 0.2s;
}

.btn-group button:hover {
    background-color: #3b5e87;
}

/* --- ОСТАЛЬНЫЕ СТАРЫЕ СТИЛИ --- */

/* "Оставаться на сайте" */
.checkbox-group {
    display: flex;
    margin-left: 70px;
    font-size: 11px;
}
.checkbox-group input { margin-right: 10px; }

/* Нижние ссылки под синей рамкой */
.links-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}
.auth-link {
    font: inherit;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: #4a76a8;
}
.auth-link:hover { text-decoration: underline; }