/* Фон всей страницы */
body {
    margin: 0;
    padding: 15px 0; /* ↓ было 20px — ещё компактнее */
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    background-image:
        url("../img/bg.png"),
        linear-gradient(135deg, rgba(0,123,255,0.90) 0%, rgba(0,170,255,0.90) 100%);
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;

    height: 100vh;        /* ← фиксируем высоту, чтобы не было скролла */
    overflow-y: hidden;   /* ← убираем вертикальный скролл */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Логотип над формой */
.logo-top {
    width: 200px;
    margin-bottom: 8px; /* ↓ было 10px */
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.9));
}

/* Белая карточка формы */
.form-card {
    width: 480px;
    background: #fff;
    padding: 30px 40px 35px; /* ↓ уменьшили верх и низ */
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    text-align: left;
    margin-bottom: 15px; /* ↓ было 20px */
}

/* Заголовок */
h2 {
    margin-top: 0;
    margin-bottom: 14px; /* ↓ было 18px */
    font-size: 22px;     /* ↓ было 24px */
    font-weight: 600;
    color: #222;
}

/* Поля */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 11px 13px; /* чуть компактнее */
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s;
    background: #fff;
    margin-bottom: 12px; /* ↓ было 14px */
}

input:focus,
textarea:focus {
    border-color: #0099ff;
    outline: none;
}

textarea {
    resize: vertical;
}

/* Чекбокс */
.checkbox-row {
    margin-top: 2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Кнопка */
button {
    width: 100%;
    padding: 12px;
    background: #0099ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px; /* ↓ было 6px */
    transition: background .2s;
}

button:hover {
    background: #007acc;
}

/* Ошибки */
.error {
    color: #d00;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Ссылка на скачивание */
#download {
    display: none;
    margin-top: 14px;
    text-align: center;
    font-size: 16px;
    color: #0099ff;
    text-decoration: none;
}

#download:hover {
    text-decoration: underline;
}