/* app/static/css/forms.css */

/* --- Общие стили для контейнеров полей --- */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* --- Лейблы (Подписи) --- */
label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0; /* Светло-серый */
    font-family: 'Conthrax', sans-serif; /* Наш фирменный шрифт */
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* --- Поля ввода (Input, Textarea, Select) --- */
/* Применяем ко всем текстовым полям и классу .form-control */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select,
.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: #252525; /* Темный фон */
    border: 1px solid #444;    /* Темная рамка */
    border-radius: 6px;
    color: #fff;               /* Белый текст */
    font-family: 'Inter', sans-serif; /* Читаемый шрифт для ввода */
    font-size: 1em;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box; /* Чтобы padding не ломал ширину */
}

/* --- Состояние фокуса (когда нажали) --- */
input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    outline: none;
    border-color: #ff8128; /* Оранжевый акцент */
    background-color: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(255, 129, 40, 0.2); /* Оранжевое свечение */
}

/* --- Состояние ошибки --- */
input.is-invalid,
.form-control.is-invalid {
    border-color: #ff6b6b;
}

/* --- Текст ошибок и подсказок --- */
.form-error {
    color: #ff6b6b; /* Красный */
    font-size: 0.85em;
    margin-top: 6px;
    display: block;
}

.form-note {
    color: #888; /* Серый */
    font-size: 0.85em;
    margin-top: 6px;
    display: block;
}

/* --- Чекбоксы (Запомнить меня) --- */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

input[type="checkbox"] {
    appearance: none; /* Убираем стандартный вид */
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
}

input[type="checkbox"]:checked {
    background-color: #ff8128;
    border-color: #ff8128;
}

input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    color: #101010;
    font-size: 14px;
    left: 4px;
    top: 0px;
    font-weight: bold;
}

input[type="checkbox"]:hover {
    border-color: #ff8128;
}

/* --- Кнопки (если не используется глобальный класс .btn) --- */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #ff8128;
    color: #101010;
    font-family: 'Conthrax', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #e07018;
}