:root {
    --nacht: #020b15;
    --nachtblau: #04182b;
    --tiefblau: #062743;
    --glas: rgba(8, 35, 59, 0.70);
    --glas-dunkel: rgba(3, 19, 34, 0.78);
    --linie: rgba(161, 218, 255, 0.38);
    --linie-zart: rgba(161, 218, 255, 0.18);
    --cyan: #35c8ff;
    --blau: #087ec4;
    --blau-dunkel: #07518e;
    --text: #f3f8fc;
    --text-zart: #93a8b8;
    --fehler: #ff8178;
}

* {
    box-sizing: border-box;
}

html,
body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            ellipse at 50% 108%,
            rgba(35, 196, 255, 0.34) 0%,
            rgba(18, 121, 177, 0.15) 17%,
            transparent 46%
        ),
        radial-gradient(
            ellipse at 22% 58%,
            rgba(14, 117, 181, 0.19),
            transparent 39%
        ),
        radial-gradient(
            ellipse at 78% 58%,
            rgba(14, 117, 181, 0.19),
            transparent 39%
        ),
        linear-gradient(
            145deg,
            #010711 0%,
            #021426 42%,
            #032039 68%,
            #010914 100%
        );
}

/*
 * Seitliche Wasserwellen.
 */
body::before {
    content: "";
    position: fixed;
    z-index: 0;
    left: 50%;
    top: 42%;
    width: min(1500px, 120vw);
    height: 430px;
    pointer-events: none;

    transform:
        translateX(-50%)
        perspective(700px)
        rotateX(64deg);

    transform-origin: center bottom;

    background:
        radial-gradient(
            ellipse at 50% 36%,
            transparent 0 21%,
            rgba(55, 202, 255, 0.15) 22% 23%,
            transparent 25% 32%,
            rgba(27, 148, 211, 0.13) 33% 34%,
            transparent 36% 44%,
            rgba(27, 148, 211, 0.10) 45% 46%,
            transparent 48%
        ),
        repeating-radial-gradient(
            ellipse at 50% 45%,
            transparent 0 24px,
            rgba(40, 172, 230, 0.07) 27px,
            transparent 31px,
            transparent 50px
        );

    filter:
        blur(2px)
        drop-shadow(
            0 0 18px
            rgba(34, 177, 236, 0.22)
        );

    opacity: 0.90;

    animation:
        wasserwellen 10s
        ease-in-out
        infinite alternate;
}

/*
 * Lichtreflexion auf der Wasseroberfläche.
 */
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    left: 50%;
    bottom: -80px;
    width: min(760px, 85vw);
    height: 300px;
    pointer-events: none;
    border-radius: 50%;

    transform:
        translateX(-50%)
        scaleY(0.42);

    background:
        repeating-radial-gradient(
            ellipse at center,
            rgba(74, 211, 255, 0.26) 0 2px,
            transparent 4px 18px
        ),
        radial-gradient(
            ellipse at center,
            rgba(50, 207, 255, 0.35),
            rgba(13, 112, 164, 0.14) 35%,
            transparent 68%
        );

    filter:
        blur(7px)
        drop-shadow(
            0 0 28px
            rgba(47, 193, 246, 0.30)
        );

    opacity: 0.85;

    animation:
        wasserreflexion 7s
        ease-in-out
        infinite alternate;
}

.anmeldeseite {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 18px;
}

.anmeldekarte {
    position: relative;
    width: min(100%, 530px);
    padding: 54px 52px 50px;
    overflow: hidden;
    border: 1px solid var(--linie);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(29, 70, 101, 0.50),
            rgba(4, 24, 43, 0.77) 48%,
            rgba(2, 18, 33, 0.86)
        );
    box-shadow:
        0 32px 90px rgba(0, 5, 12, 0.70),
        0 0 45px rgba(16, 138, 205, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(72, 196, 255, 0.18);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
}

/*
 * Glasreflex oben rechts.
 */
.anmeldekarte::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -90px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(109, 191, 240, 0.15),
            transparent 67%
        );
    pointer-events: none;
}

.anmeldekarte::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -160px;
    width: 480px;
    height: 390px;
    transform: rotate(-28deg);
    background:
        linear-gradient(
            135deg,
            transparent 15%,
            rgba(255, 255, 255, 0.025) 50%,
            transparent 72%
        );
    pointer-events: none;
}

.logo-bereich {
    position: relative;
    z-index: 1;
    margin: 0 auto 38px;
    text-align: center;
}

.anmelde-logo {
    display: block;
    width: min(100%, 350px);
    max-height: 180px;
    margin: 0 auto;
    object-fit: contain;
    filter:
        drop-shadow(0 8px 18px rgba(0, 0, 0, 0.30))
        drop-shadow(0 0 10px rgba(35, 161, 218, 0.10));
}

.anmeldeformular {
    position: relative;
    z-index: 1;
}

.formularfeld {
    margin-bottom: 24px;
}

.formularfeld label {
    display: block;
    margin: 0 0 9px 3px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.eingabe-rahmen {
    position: relative;
}

.eingabe-symbol {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 22px;
    height: 22px;
    color: #d9e8f2;
    pointer-events: none;
    transform: translateY(-50%);
}

.eingabe-symbol svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.eingabe-rahmen input {
    width: 100%;
    height: 58px;
    padding: 0 54px 0 58px;
    border: 1px solid rgba(158, 199, 223, 0.31);
    border-radius: 11px;
    outline: none;
    background:
        linear-gradient(
            180deg,
            rgba(2, 17, 30, 0.72),
            rgba(2, 13, 24, 0.82)
        );
    box-shadow:
        inset 0 1px 7px rgba(0, 0, 0, 0.30),
        0 1px 0 rgba(255, 255, 255, 0.035);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.eingabe-rahmen input::placeholder {
    color: #778d9e;
}

.eingabe-rahmen input:focus {
    border-color: rgba(53, 200, 255, 0.78);
    background: rgba(2, 19, 34, 0.90);
    box-shadow:
        0 0 0 4px rgba(53, 200, 255, 0.09),
        0 0 20px rgba(22, 151, 214, 0.10),
        inset 0 1px 7px rgba(0, 0, 0, 0.34);
}

.passwort-anzeigen {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #d7e8f2;
    transform: translateY(-50%);
    cursor: pointer;
}

.passwort-anzeigen:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: translateY(-50%);
}

.passwort-anzeigen svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.anmelden-schaltflaeche {
    position: relative;
    width: 100%;
    min-height: 60px;
    margin-top: 6px;
    padding: 14px 22px;
    overflow: hidden;
    border: 1px solid rgba(73, 196, 255, 0.52);
    border-radius: 11px;
    background:
        linear-gradient(
            180deg,
            #1393dc 0%,
            #0872bb 45%,
            #07589a 100%
        );
    box-shadow:
        0 13px 30px rgba(0, 74, 133, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 19, 53, 0.40);
    color: white;
    font: inherit;
    font-size: 18px;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 150ms ease,
        filter 150ms ease,
        box-shadow 150ms ease;
}

.anmelden-schaltflaeche::before {
    content: "";
    position: absolute;
    top: 0;
    left: -45%;
    width: 40%;
    height: 100%;
    transform: skewX(-22deg);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.17),
            transparent
        );
    transition: left 450ms ease;
}

.anmelden-schaltflaeche:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow:
        0 16px 34px rgba(0, 91, 163, 0.42),
        0 0 24px rgba(43, 177, 236, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.anmelden-schaltflaeche:hover::before {
    left: 115%;
}

.anmelden-inhalt {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.anmelden-symbol {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

.formularfehler {
    margin: 0 0 24px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 129, 120, 0.34);
    border-radius: 10px;
    background: rgba(120, 20, 20, 0.18);
    color: #ffd0cc;
    font-size: 14px;
    line-height: 1.45;
}

.feldfehler {
    margin: 7px 2px 0;
    color: var(--fehler);
    font-size: 13px;
}

@media (max-width: 620px) {
    .anmeldeseite {
        padding: 18px 12px;
    }

    .anmeldekarte {
        padding: 34px 22px 30px;
        border-radius: 22px;
    }

    .logo-bereich {
        margin-bottom: 30px;
    }

    .anmelde-logo {
        width: min(100%, 290px);
        max-height: 150px;
    }

    .eingabe-rahmen input {
        height: 54px;
    }

    .anmelden-schaltflaeche {
        min-height: 56px;
    }
}

@media (max-height: 760px) and (min-width: 621px) {
    .anmeldeseite {
        padding-block: 18px;
    }

    .anmeldekarte {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .logo-bereich {
        margin-bottom: 24px;
    }

    .anmelde-logo {
        max-height: 125px;
    }

    .formularfeld {
        margin-bottom: 18px;
    }
}

@keyframes wasserwellen {
    from {
        transform:
            translateX(-50%)
            perspective(700px)
            rotateX(64deg)
            translateY(0)
            scaleX(1);
        opacity: 0.72;
    }

    to {
        transform:
            translateX(-50%)
            perspective(700px)
            rotateX(64deg)
            translateY(-12px)
            scaleX(1.035);
        opacity: 0.96;
    }
}

@keyframes wasserreflexion {
    from {
        transform:
            translateX(-50%)
            scaleY(0.38)
            scaleX(0.92);
        opacity: 0.65;
    }

    to {
        transform:
            translateX(-50%)
            scaleY(0.48)
            scaleX(1.06);
        opacity: 0.92;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}
