html,
body.login-seite {
    min-height: 100%;
    margin: 0;
}

body.login-seite {
    min-height: 100vh;
    background: var(--background-seite, #e1ebea);
    color: var(--primary, #2c3e50);
    font-family: 'Inter', sans-serif;
}

.login-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(300px, 38%) 1fr;
}

.login-markenflaeche {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    padding: 42px clamp(28px, 5vw, 72px);
    box-sizing: border-box;
    background: linear-gradient(150deg, #1a3a4a 0%, #174d57 100%);
    color: #fff;
}

.login-markenflaeche::after {
    position: absolute;
    right: -130px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(255, 255, 255, .035),
                0 0 0 74px rgba(255, 255, 255, .025);
    content: "";
}

.login-begruessung {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin: 0;
    padding: calc(clamp(42px, 7vh, 76px) + clamp(114px, 16vh, 142px)) 0 0;
}

.login-ueberzeile,
.login-karten-ueberzeile {
    margin: 0 0 12px;
    color: #8fd0c9;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-begruessung h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 500;
    line-height: 1.15;
}

.login-begruessung > p:last-child {
    max-width: 360px;
    margin: 0;
    color: #d5e4e3;
    font-size: 16px;
    line-height: 1.7;
}

.login-markenfuss {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    letter-spacing: .04em;
}

.login-logo-mitte {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    min-height: 190px;
    align-items: center;
    justify-content: center;
}

.login-logo-mitte img {
    display: block;
    width: clamp(125px, 12vw, 155px);
    max-height: 32vh;
    object-fit: contain;
}

.login-hauptbereich {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 22px;
    box-sizing: border-box;
}

.login-karte {
    width: min(100%, 440px);
    padding: 40px 42px 42px;
    border: 1px solid rgba(44, 62, 80, .08);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(30, 57, 64, .12);
    box-sizing: border-box;
}

.login-karten-ueberzeile {
    margin-bottom: 8px;
    color: var(--text-muted);
    letter-spacing: .08em;
}

.login-karte h1 {
    margin: 0;
    color: var(--primary, #2c3e50);
    font-size: 30px;
    font-weight: 500;
}

.login-hinweis {
    margin: 9px 0 28px;
    color: var(--text-subtle);
    font-size: 14px;
}

.login-feld {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.login-feld label {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.login-feld input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--background-tabelle-alternativ);
    color: var(--text-primary);
    font: 15px 'Inter', sans-serif;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-feld input:focus {
    border-color: var(--button-active);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(11, 119, 119, .13);
}

.login-anmelden {
    width: 100%;
    min-height: 48px;
    margin-top: 26px;
    border: 0;
    border-radius: 9px;
    background: #0b7777;
    color: #fff;
    font: 600 15px 'Inter', sans-serif;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.login-anmelden:hover {
    background: #095f63;
    transform: translateY(-1px);
}

.login-anmelden:focus-visible {
    outline: 3px solid rgba(11, 119, 119, .3);
    outline-offset: 3px;
}

.login-meldung {
    margin: 0 0 18px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.login-meldung-fehler {
    border: 1px solid #ebc1be;
    background: #fff3f2;
    color: #8b3530;
}

.login-meldung-erfolg {
    border: 1px solid var(--background-aktiv);
    background: var(--background-aktiv);
    color: var(--text-light);
}

.login-fussnote {
    margin: 18px 0 0;
    color: var(--text-subtle);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 760px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-markenflaeche {
        min-height: 0;
        padding: 22px 25px;
    }

    .login-markenflaeche::after,
    .login-markenfuss {
        display: none;
    }

    .login-begruessung {
        margin: 0;
        padding: clamp(130px, 17vh, 150px) 0 0;
    }

    .login-begruessung h2 {
        margin-bottom: 8px;
        font-size: 25px;
    }

    .login-begruessung > p:last-child {
        font-size: 14px;
    }

    .login-hauptbereich {
        padding: 24px 16px 28px;
    }

    .login-karte {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .login-logo-mitte {
        flex: none;
        min-height: 150px;
    }

    .login-logo-mitte img {
        width: 86px;
        max-height: 130px;
    }
}

@media (max-width: 380px) {
    .login-markenflaeche {
        padding: 18px;
    }

    .login-karte {
        padding: 26px 20px;
    }
}
