html, body {
    height: 100%;
    margin: 0;
    background: #222831;
    font-family: 'Opensans', 'Helvetica Neue', Verdana, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

/* Zentrierter Wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 88px; /* genug Platz für Header */
}

/* Login-Box */
.login-box {
    background: #313537;
    color: white;
    border-radius: 18px;
    box-shadow: 0 10px 38px rgba(0,0,0,0.16);
    width: 400px;
    max-width: 98vw;
    padding: 44px 36px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: login-pop 0.8s cubic-bezier(.42,0,.58,1.04);
    /* Für große Bildschirme größer darstellen */
    transition: width 0.3s, padding 0.3s;
}

@keyframes login-pop {
    0% { opacity: 0; transform: scale(.95) translateY(16px);}
    60% { opacity: .9; transform: scale(1.02) translateY(-10px);}
    100% { opacity: 1; transform: scale(1) translateY(0);}
}

.loginlogo img {
    width: 110px;
    margin-bottom: 32px;
    display: block;
    transition: transform 0.28s, width 0.3s;
}
.loginlogo img:hover {
    transform: scale(1.08) rotate(-2deg);
}

.hp {
    font-size: 1.27rem;
    text-align: center;
    margin-bottom: 26px;
    font-weight: bold;
    letter-spacing: .2px;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 10px;
}
input[type="email"], input[type="password"] {
    padding: 13px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.05rem;
    background: #f7f8fb;
    color: #16181c;
    width: 100%;
    transition: border 0.15s, box-shadow 0.14s;
}
input:focus {
    outline: none;
    border-color: #e60028;
    box-shadow: 0 0 0 2px rgba(230,0,40,0.13);
}

/* Button */
.btnlogin {
    width: 100%;
    background-color: #e60028;
    color: white;
    font-weight: 700;
    padding: 15px 0;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-size: 1.09rem;
    margin-top: 2px;
    margin-bottom: 8px;
    box-shadow: 0 4px 18px 0 rgba(170,0,28,0.09);
    transition: background 0.16s, box-shadow 0.17s, transform 0.14s;
}
.btnlogin:hover, .btnlogin:focus {
    background: #c4001f;
    box-shadow: 0 8px 32px 0 rgba(230,0,40,0.19);
    transform: translateY(-1.5px) scale(1.018);
}

.error-message {
    background: #d4002a;
    color: #fff;
    padding: 9px 0;
    margin: 7px 0 15px 0;
    border-radius: 7px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    animation: fadein .4s;
}
@keyframes fadein { from { opacity: 0;} to { opacity: 1;} }

/* Links nebeneinander */
.links-row {
    margin-top: 18px;
    margin-bottom: 2px;
    text-align: center;
    font-size: 0.97rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-width: 120px;
}
.links-row a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
    padding: 4px 0;
    border-radius: 5px;
    transition: background 0.14s, color 0.13s;
    font-size: inherit;
    white-space: nowrap;
}
.links-row a:hover, .links-row a:focus {
    color: #e60028;
    background: #393E46;
}

.links-row span {
    color: #555;
    font-size: 1.1em;
    margin: 0 12px;
    user-select: none;
}

/* -------------------- MEDIA QUERIES -------------------- */

/* 4K & Ultra Wide: Login-Box dezent größer, Schrift anpassen */
@media (min-width: 2000px) {
    html, body {
        font-size: 19px;
    }
    .login-box {
        width: 520px;
        padding: 58px 48px 38px 48px;
    }
    .loginlogo img {
        width: 140px;
    }
}

/* Standard große Bildschirme: Login-Box angenehmer groß */
@media (min-width: 1400px) and (max-width: 2000px) {
    html, body {
        font-size: 17.2px;
    }
    .login-box {
        width: 460px;
        padding: 52px 44px 32px 44px;
    }
    .loginlogo img {
        width: 122px;
    }
}

/* Tablet und kleine Laptops */
@media (max-width: 980px) {
    .login-box {
        width: 96vw;
        max-width: 420px;
        padding: 40px 8vw 22px 8vw;
    }
}

/* Smartphone quer */
@media (max-width: 720px) {
    .login-box {
        width: 99vw;
        max-width: 96vw;
        padding: 32px 6vw 18px 6vw;
    }
    .loginlogo img {
        width: 80px;
    }
    .links-row {
        font-size: 0.93rem;
    }
}

/* Smartphone hochkant */
@media (max-width: 420px) {
    .login-box {
        width: 99vw;
        max-width: 99vw;
        padding: 21px 3vw 9px 3vw;
    }
    .loginlogo img {
        width: 58px;
    }
    .hp {
        font-size: 1.08rem;
    }
    .links-row {
        gap: 7px;
        font-size: 0.87rem;
    }
}
