:root {
    --navy: #061a33;
    --navy-dark: #031227;
    --navy-light: #0a2749;
    --gold: #b98a33;
    --text: #10253f;
    --muted: #5d6b7b;
    --background: #f5f7fa;
    --focus: #2a6db0;
    --border: #d5dbe2;
}

/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--background);
    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
}

/* =========================================================
   KOPFZEILE
   ========================================================= */

.topbar {
    min-height: 88px;

    background:
        linear-gradient(
            90deg,
            var(--navy),
            var(--navy-dark)
        );

    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 42px;

    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    gap: 16px;
    align-items: center;
}

.brand-mark {
    width: 58px;
    height: 58px;

    border: 2px solid white;

    border-radius:
        16px
        16px
        22px
        22px;

    display: grid;
    place-items: center;

    font-size: 30px;
}

.brand-name {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;
    line-height: 1;
}

.brand-claim {
    font-size: 18px;

    margin-top: 8px;

    color: #f0dfb8;
}

.topnav {
    display: flex;
    gap: 34px;
    align-items: center;

    font-size: 16px;
}

.topnav a,
.topnav span {
    color: white;
    text-decoration: none;
}

.topnav a:hover {
    text-decoration: underline;
}

/* =========================================================
   HAUPTBEREICH
   ========================================================= */

.page-shell {
    flex: 1;
    display: flex;
}

/* =========================================================
   HINTERGRUNDBILD
   ========================================================= */

.hero {
    flex: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(420px, 0.85fr);

    min-height: 730px;

    position: relative;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(255, 255, 255, 0.18) 38%,
            rgba(255, 255, 255, 0.08) 62%,
            rgba(255, 255, 255, 0.02) 100%
        ),
        url("/assets/images/login-background.webp");

    background-size: cover;

    background-position:
        center center;

    background-repeat:
        no-repeat;

    background-attachment:
        scroll;
}

/* =========================================================
   LINKE SEITE
   ========================================================= */

.hero-copy {
    padding:
        82px
        60px
        46px
        9vw;

    position: relative;
    z-index: 2;
}

.eyebrow {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    margin: 0;

    color: var(--navy);
}

h1 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 58px;
    font-weight: 500;

    margin:
        6px
        0
        12px;

    color: var(--navy);
}

.accent-line {
    width: 78px;
    height: 3px;

    background: var(--gold);

    margin:
        18px
        0
        38px;
}

.lead {
    font-size: 22px;

    margin:
        0
        0
        24px;
}

.intro {
    font-size: 19px;
    line-height: 1.55;

    max-width: 580px;

    margin:
        0
        0
        34px;
}

/* =========================================================
   SICHERHEITSPUNKTE
   ========================================================= */

.trust-list {
    list-style: none;

    margin: 0;
    padding: 0;

    display: grid;
    gap: 20px;

    font-size: 18px;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    flex:
        0
        0
        30px;

    width: 30px;
    height: 30px;

    border:
        2px solid
        var(--gold);

    border-radius: 50%;

    display: grid;
    place-items: center;

    color: var(--gold);

    font-weight: bold;
}

/* =========================================================
   LOGIN-KARTE
   ========================================================= */

.login-card {
    align-self: center;
    justify-self: center;

    width:
        min(
            560px,
            88%
        );

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    box-shadow:
        0
        20px
        55px
        rgba(
            6,
            26,
            51,
            0.16
        );

    padding:
        32px
        38px
        28px;

    position: relative;
    z-index: 5;

    backdrop-filter:
        blur(3px);

    -webkit-backdrop-filter:
        blur(3px);
}

.card-logo {
    width: 64px;
    height: 64px;

    background:
        var(--navy);

    color: white;

    border-radius:
        14px
        14px
        22px
        22px;

    display: grid;
    place-items: center;

    font-size: 31px;

    margin:
        0
        auto
        10px;
}

.login-card h2 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;
    font-weight: 500;

    text-align: center;

    color: var(--navy);

    margin:
        5px
        0
        6px;
}

.card-subtitle {
    text-align: center;

    line-height: 1.45;

    margin:
        0
        auto
        24px;

    max-width: 420px;
}

/* =========================================================
   FORMULAR
   ========================================================= */

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;

    font-weight: 700;

    margin:
        15px
        0
        8px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 50px;

    border:
        1px solid
        #c9d1db;

    border-radius: 7px;

    padding:
        0
        14px;

    font-family: inherit;
    font-size: 16px;

    color: var(--text);

    background: white;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color:
        var(--focus);

    box-shadow:
        0
        0
        0
        3px
        rgba(
            42,
            109,
            176,
            0.12
        );
}

/* =========================================================
   PASSWORT
   ========================================================= */

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 52px;
}

.eye-btn {
    position: absolute;

    right: 8px;
    top: 6px;

    width: 38px;
    height: 38px;

    border: 0;

    background:
        transparent;

    cursor: pointer;

    font-size: 18px;

    display: grid;
    place-items: center;
}

/* =========================================================
   CHECKBOX / PASSWORT VERGESSEN
   ========================================================= */

.row-between {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin:
        18px
        0;
}

.checkline {
    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 500;

    margin: 0;
}

.checkline input {
    width: 18px;
    height: 18px;

    margin: 0;
}

.link {
    color:
        #154f8a;

    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.primary-btn,
.secondary-btn {
    width: 100%;
    height: 54px;

    border-radius: 7px;

    font-family: inherit;
    font-size: 18px;

    cursor: pointer;
}

.primary-btn {
    border: 0;

    background:
        var(--navy);

    color: white;

    font-weight: 700;
}

.primary-btn:hover {
    background:
        var(--navy-light);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.eye-btn:focus-visible,
.text-btn:focus-visible,
a:focus-visible {
    outline:
        3px solid
        rgba(
            42,
            109,
            176,
            0.35
        );

    outline-offset: 3px;
}

.secondary-btn {
    border:
        1px solid
        var(--navy);

    background:
        white;

    color:
        var(--navy);

    font-weight: 700;
}

.secondary-btn:hover {
    background:
        #f4f7fa;
}

.text-btn {
    display: block;

    margin:
        12px
        auto
        0;

    border: 0;

    background:
        transparent;

    color:
        #456;

    cursor: pointer;
}

/* =========================================================
   ZWEITE IDENTITÄTSPRÜFUNG
   ========================================================= */

.separator {
    display: flex;

    align-items: center;

    gap: 10px;

    margin:
        28px
        0
        16px;

    font-weight: 700;
}

.separator::before,
.separator::after {
    content: "";

    height: 1px;

    background:
        var(--border);

    flex: 1;
}

.twofa p {
    text-align: center;

    color:
        var(--muted);

    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.form-message {
    min-height: 20px;

    margin:
        14px
        0
        0;

    font-size: 14px;

    color:
        #9b2c2c;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background:
        var(--navy);

    color: white;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 30px;

    padding:
        18px
        42px;

    font-size: 14px;

    flex-wrap: wrap;

    position: relative;
    z-index: 10;
}

.footer-left,
.footer-right {
    display: flex;

    gap: 26px;

    align-items: center;

    flex-wrap: wrap;
}

.footer-right a {
    text-decoration: none;

    color: white;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;

        background-position:
            35% center;
    }

    .hero-copy {
        padding:
            56px
            32px
            60px;
    }

    .login-card {
        margin:
            20px
            auto
            44px;
    }

    .topnav {
        display: none;
    }
}

/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 650px) {

    .topbar {
        padding:
            14px
            18px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;

        font-size: 24px;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-claim {
        font-size: 14px;
    }

    .hero {
        min-height: auto;

        background-position:
            32% center;
    }

    h1 {
        font-size: 42px;
    }

    .eyebrow {
        font-size: 20px;
    }

    .hero-copy {
        padding:
            44px
            22px
            50px;
    }

    .login-card {
        width:
            calc(
                100% - 28px
            );

        padding:
            26px
            20px;

        margin-bottom:
            32px;
    }

    .row-between {
        align-items:
            flex-start;

        gap: 14px;

        flex-direction:
            column;
    }

    .footer {
        padding:
            18px
            20px;
    }
}