/* ============================================
   PREMIUM LOGIN DESIGN
   Modern Enterprise / Tech / Secure
   ============================================ */

:root {
    --navy: #08152d;
    --navy-light: #14264a;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --text: #15243d;
    --muted: #64748b;
    --border: #dce5f0;
}

/* GLOBAL */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 30px 18px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    isolation: isolate;
    overflow-x: hidden;

    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--text);

    background:
    radial-gradient(ellipse at 10% 12%,
        rgba(168, 185, 197, .30),
        transparent 42%),
    radial-gradient(ellipse at 90% 85%,
        rgba(114, 130, 141, .35),
        transparent 43%),
    linear-gradient(135deg,
        #23333d 20%,
        #72828d 93%,
        #a8b9c5 100%);
}

/* DEZENTES TECH-GRID IM HINTERGRUND */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;

    background-image:
        linear-gradient(rgba(135, 185, 255, .065) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(135, 185, 255, .065) 1px,
            transparent 1px);

    background-size: 46px 46px;

    mask-image: linear-gradient(125deg,
            rgba(0, 0, 0, .7),
            rgba(0, 0, 0, .18));
}

/* LEUCHTENDE HINTERGRUND-ILLUSTRATION */

body::after {
    content: "";
    position: fixed;

    width: min(65vw, 750px);
    height: min(65vw, 750px);

    right: -18%;
    bottom: -42%;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(6, 182, 212, .28) 0%,
            rgba(37, 99, 235, .13) 38%,
            transparent 70%);

    filter: blur(24px);
    pointer-events: none;
    z-index: -1;

    animation: ambientGlow 12s ease-in-out infinite alternate;
}

/* LOGIN-KARTE */

form {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 440px;

    margin: 0;
    padding: 46px 42px 40px;

    background: linear-gradient(145deg,
            rgba(255, 255, 255, .98),
            rgba(244, 248, 255, .97));

    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 24px;

    box-shadow:
        0 30px 90px rgba(0, 8, 30, .40),
        0 8px 25px rgba(0, 8, 30, .12),
        inset 0 1px rgba(255, 255, 255, .9);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    overflow: hidden;

    animation: cardEntrance .65s ease-out both;
}

/* AKZENTLINIE OBEN */

form::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: linear-gradient(90deg,
        #23333d 0%,
        #72828d 100%);
}

/* ÜBERSCHRIFT UND LOGO */

h2 {
    margin: 0 0 33px;
    padding: 0;

    color: #10213d;
    font-size: clamp(22px, 4vw, 27px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.6px;

    text-align: center;
    overflow-wrap: anywhere;
}

/* KLEINES TECH-SYMBOL */

h2::before {
    content: "";
    display: block;

    width: 100%;
    height: 90px;

    margin: 0 auto 24px;

    background-image: url("../../images/cedur.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* LABELS */

label {
    display: block;

    margin: 0 0 9px;

    color: #334155;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1px;
}

/* EINGABEFELDER */

input[type="text"],
input[type="password"] {
    display: block;

    width: 100%;
    height: 52px;

    margin: 0 0 23px;
    padding: 0 16px;

    font-family: inherit;
    font-size: 15px;
    color: #14243e;

    background: #f8faff;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

input[type="text"]:hover,
input[type="password"]:hover {
    border-color: #adc2e0;
}

input[type="text"]:focus,
input[type="password"]:focus {
    background: #fff;

    border-color: var(--blue);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .11),
        0 4px 12px rgba(37, 99, 235, .05);
}

/* BROWSER AUTOFILL */

input:-webkit-autofill {
    -webkit-box-shadow:
        0 0 0 1000px #f8faff inset;
    -webkit-text-fill-color: #14243e;
}

/* BUTTON */

button {
    display: block;

    width: 100%;
    min-height: 52px;

    margin: 8px 0 0;
    padding: 13px 18px;

    border: 0;
    border-radius: 10px;

    background: linear-gradient(110deg,
            #23333d,
            #53646f,
            #23333d);

    color: #fff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(37, 99, 235, .24);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);

    box-shadow:
        0 14px 27px rgba(37, 99, 235, .30);
}

button:active {
    transform: translateY(0);
}

button:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 4px;
}

/* ALTE BR-ABSTÄNDE ENTFERNEN */

form>br {
    display: none;
}

/* FEHLERMELDUNGEN */

.login-message {
    margin-top: 20px;
    padding: 13px 15px;

    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;

    color: #991b1b;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.login-message:empty {
    display: none;
}

/* SANFTE ANIMATIONEN */

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ambientGlow {
    from {
        transform: translate(0, 0) scale(1);
        opacity: .65;
    }

    to {
        transform: translate(-35px, -25px) scale(1.13);
        opacity: 1;
    }
}

/* MOBILE */

@media (max-width: 520px) {
    body {
        padding: 20px 15px;
    }

    form {
        max-width: 100%;
        padding: 37px 25px 32px;
        border-radius: 20px;
    }

    h2 {
        margin-bottom: 28px;
    }

    h2::before {
        width: 52px;
        height: 52px;
        margin-bottom: 19px;
    }

    input[type="text"],
    input[type="password"] {
        height: 50px;
    }
}

/* BARRIEREFREIHEIT */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}