/* BIWE Login – ausschließlich Darstellung; Authentifizierung bleibt unverändert. */
* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #eaf2fc;
    /* Bild liegt neben dieser CSS-Datei; kein zusätzliches Verzeichnis nötig. */
    background-image: url("./login-background.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(208, 221, 237, .9);
    border-radius: 10px;
    box-shadow: 0 12px 38px rgba(27, 53, 90, .18);
}

.login-box h1 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 26px;
    color: #253448;
}

.login-box .subtitle {
    margin-bottom: 26px;
    text-align: center;
    color: #64748b;
}

.login-box label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #253448;
}

.login-box input:not([type="hidden"]) {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b8c4d2;
    border-radius: 6px;
    background: #fff;
    color: #253448;
    font-size: 16px;
}

.login-box input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.login-box button[type="submit"] {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: #0d6efd;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.login-box button[type="submit"]:hover { background: #0b5ed7; }
.login-box button[type="submit"]:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .38);
    outline-offset: 2px;
}

.login-box .error {
    margin-bottom: 15px;
    padding: 10px 12px;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 6px;
    color: #842029;
}

/* Auf Hochformatgeräten ein Stück des anonymen Kachelrasters sichtbar lassen. */
@media (max-width: 768px) {
    body {
        padding: 16px;
        background-position: 23% center;
        background-attachment: scroll;
    }
    .login-box {
        max-width: 400px;
        padding: 26px 22px;
        background: rgba(255, 255, 255, .98);
    }
}

@media (max-height: 480px) {
    body { align-items: flex-start; }
}
