html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background: url('/bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

/* основной контейнер растягивается на всё пространство между header и футером */
.login-container {
    flex: 1;           /* растягивается на всю высоту между верхом и футером */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.login-box h2 {
    margin-bottom: 20px;
    text-align: center;
}

input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    width: 100%;
    padding: 10px;
    background: #2d7df6;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #1b5edb;
}

#error-msg {
    color: red;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

/* футер всегда внизу страницы */
footer {
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #888;
    background-color: #f9f9f9;
    width: 100%;
}
