﻿* {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Roboto', helvetica, arial, sans-serif;
    font-size: 1em;
    background-color: #b7b7b7;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Damit der Container und die Meldungen untereinander stehen */
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-image: url(data:image/png;base64,iVBORw0K...==);
        opacity: .3;
        z-index: 0;
    }

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1; /* Damit es über dem Body::before Background liegt */
}

/* Das Login-Formular */
.login-form {
    width: 90%;
    max-width: 320px;
    padding: 1.5em;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.flex-row {
    display: flex;
    margin-bottom: 0.75em;
}

.lf--label {
    width: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
    cursor: pointer;
}

.lf--input {
    flex: 1;
    padding: 0.75em;
    border: none;
    font-size: 0.9em;
    color: #8f8f8f;
    border-radius: 0 4px 4px 0;
}

.lf--submit {
    display: block;
    width: 100%;
    padding: 0.6em;
    background: linear-gradient(to right, #e64747, rgba(190, 70, 60, 0.9));
    border: none;
    color: #fff;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.3s ease;
}

    .lf--submit:hover {
        background: #f5f6f8;
        transform: scale(1.05);
        color: red;
    }

    .lf--submit:focus {
        outline: none;
        transform: scale(1.1);
    }

.login-error-message {
    width: 100%;
    max-width: 320px; /* passend zur Login-Box */
    margin: 1em auto 0 auto; /* oben Abstand, zentriert horizontal */
    text-align: center;
    display: block; /* explizit block, damit es unterhalb steht */
    color: red;
    font-weight: bold;
}

::placeholder {
    color: #8f8f8f;
}

@media screen and (min-width: 600px) {
    .login-form {
        width: 100%;
        max-width: 300px;
        padding: 1.5em;
    }

    .login-error-message {
        max-width: 300px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 0.95em;
        padding: 1em;
    }

    .login-form {
        width: 95%;
        padding: 1.2em;
    }

    .lf--submit {
        font-size: 0.8em;
    }

    .login-error-message {
        width: 95%;
    }
}
