/* InfoDOCS Login – im Stil der Demo-Seite (/Demo, Content/Demo/demo.css).
   Greift nur bei <body class="login-modern"> (ViewBag.BodyClass in Login.vbhtml),
   damit die übrigen Seiten mit _loginLayout unverändert bleiben. Eigene Klassen mit
   Präfix "lg-", weil Bootstrap (.btn, .field …) auf der Seite mitgeladen ist. */
body.login-modern {
    --navy: #0B3A82;
    --navy-2: #072a61;
    --navy-3: #04193d;
    --sky: #3d8bff;
    --mint: #2fd1a6;
    --ink: #142033;
    --muted: #5d6a80;
    --line: #dfe5ef;
    --err: #d43c4b;
    --ok: #12a47b;
    --shadow: 0 30px 80px -20px rgba(2, 16, 45, .55), 0 2px 6px rgba(2, 16, 45, .12);
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    background: radial-gradient(1200px 700px at 10% -10%, #1650a8 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 45%, var(--navy-3) 100%) !important;
    min-height: 100vh;
    overflow-x: hidden;
}
body.login-modern > div:first-of-type { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; height: auto !important; }

/* ---------- Hintergrund ---------- */
.login-modern .bg-mesh { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.login-modern .bg-mesh span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: lg-float 18s ease-in-out infinite; }
.login-modern .bg-mesh span:nth-child(1) { width: 520px; height: 520px; background: #2f7bff; top: -120px; right: -80px; }
.login-modern .bg-mesh span:nth-child(2) { width: 420px; height: 420px; background: #18b3a0; bottom: -160px; left: 20%; animation-delay: -6s; opacity: .28; }
.login-modern .bg-mesh span:nth-child(3) { width: 300px; height: 300px; background: #7aa7ff; top: 40%; left: -120px; animation-delay: -12s; opacity: .25; }
@keyframes lg-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -40px) scale(1.08); } }
body.login-modern::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%);
}

/* ---------- Kopf ---------- */
.lg-page { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-height: calc(100vh - 80px); }
.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 5vw, 64px); }
.lg-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lg-brand .logo { height: 40px; border-radius: 999px; box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); }
.lg-brand .kunde { height: 40px; max-width: 180px; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 10px; padding: 4px 10px; }

/* ---------- Layout ---------- */
.lg-hero {
    flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 460px);
    gap: clamp(28px, 5vw, 80px); align-items: center;
    padding: 12px clamp(16px, 5vw, 64px) 40px;
    max-width: 1320px; width: 100%; margin: 0 auto;
}
.lg-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #bfe0ff; background: rgba(61,139,255,.18); border: 1px solid rgba(124,180,255,.35); padding: 6px 12px; border-radius: 999px; }
.lg-intro h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 18px 0; letter-spacing: -.02em; font-weight: 800; color: #fff; }
.lg-grad { background: linear-gradient(90deg, #8fc2ff, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-lead { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 600px; margin: 0 0 28px; }
.lg-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 560px; }
.lg-features li { display: flex; gap: 14px; align-items: flex-start; }
.lg-features i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #9fd0ff; }
.lg-features b { display: block; font-size: 15px; }
.lg-features span { font-size: 14px; color: rgba(255,255,255,.68); }

@media (max-width: 980px) {
    .lg-hero { grid-template-columns: 1fr; }
    .lg-panel { order: -1; }
    .lg-intro .lg-lead, .lg-intro .lg-features { display: none; }
    .lg-intro h1 { font-size: 30px; margin-bottom: 0; }
}

/* ---------- Panel ---------- */
.lg-panel { position: relative; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 38px); overflow: hidden; animation: lg-fade .35s ease; }
.lg-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--sky), var(--mint)); }
@keyframes lg-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lg-badge { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--sky)); margin-bottom: 18px; box-shadow: 0 12px 30px -10px rgba(11,58,130,.7); }
.lg-panel h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; color: var(--ink); }
.lg-muted { color: var(--muted); line-height: 1.55; margin: 0 0 24px; }

/* ---------- Felder ---------- */
.lg-field { display: block; margin-bottom: 16px; }
.lg-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #33415a; }
.lg-field input.tb { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.lg-field input.tb:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(61,139,255,.15); }
.lg-field input.input-validation-error { border-color: var(--err); }
.lg-field .field-validation-error { display: block; font-size: 13px; margin-top: 6px; color: var(--err) !important; }
.lg-pw { position: relative; }
.lg-pw input.tb { padding-right: 46px; }
.lg-pw input[type="password"]::-ms-reveal { display: none; }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: color .2s; }
.lg-eye:hover { color: var(--navy); }
.lg-row { display: flex; justify-content: flex-end; margin: -4px 0 22px; }
.lg-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: none; }
.lg-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.lg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-size: 17px; font-weight: 600; border: 0; border-radius: 12px; padding: 16px 22px; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--navy), #1957c2); box-shadow: 0 10px 24px -10px rgba(11,58,130,.8); transition: transform .15s, box-shadow .2s, opacity .2s; }
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(11,58,130,.9); color: #fff; }
.lg-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(61,139,255,.35); }
.lg-btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.lg-btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: lg-rot .8s linear infinite; }
@keyframes lg-rot { to { transform: rotate(360deg); } }
.lg-secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.lg-secure i { color: var(--ok); }

/* ---------- Fuß (aus _loginLayout) ---------- */
body.login-modern > footer { position: relative; z-index: 2; margin-top: 0 !important; }
body.login-modern > footer > div { background: transparent !important; border: 0 !important; backdrop-filter: none !important; padding: 14px clamp(16px, 5vw, 64px) !important; }
body.login-modern > footer .container { max-width: none; align-items: center; color: rgba(255,255,255,.55); font-size: 13px; }
body.login-modern > footer img[src*="CorporateClaimSmall"] { height: 32px !important; opacity: .8; }
body.login-modern > footer .col:first-child img:not([src*="CorporateClaimSmall"]) { display: none; } /* Kundenlogo steht oben */
body.login-modern > footer .form-select { background-color: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 13px; padding: 6px 34px 6px 14px; --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
body.login-modern > footer .form-select option { color: var(--ink); }
@media (max-width: 520px) {
    body.login-modern > footer .container { flex-wrap: wrap; gap: 8px; }
}

/* ---------- Modale (Kennwort zurücksetzen, Mandant) ---------- */
body.login-modern .modal-content { border: 0 !important; border-radius: 20px !important; background: #fff !important; color: var(--ink); box-shadow: var(--shadow) !important; overflow: hidden; }
body.login-modern .modal-content::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy), var(--sky), var(--mint)); }
body.login-modern .modal-header { border-bottom: 1px solid var(--line); }
body.login-modern .modal-footer { border-top: 1px solid var(--line); }
body.login-modern .modal-title { font-weight: 700; }
body.login-modern .modal .form-control { border-radius: 12px; border: 1.5px solid var(--line); padding: 11px 14px; }
body.login-modern .modal .form-control:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(61,139,255,.15); }
body.login-modern #yesNoYesButton { background: linear-gradient(135deg, var(--navy), #1957c2); color: #fff; border: 0; border-radius: 10px; font-weight: 600; padding: 9px 18px; }
body.login-modern #yesNoNoButton { background: transparent; color: var(--muted); border: 0; border-radius: 10px; font-weight: 600; padding: 9px 18px; }
body.login-modern #yesNoNoButton:hover { background: #f1f4f9; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { body.login-modern *, body.login-modern *::before, body.login-modern *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   Smart Login (DevOps #749): Motiv links ca. 55 %, Anmeldung rechts ca. 45 %.
   Inhalte aus App_Data/LoginMotive.json, siehe App_Classes/Login/LoginMotive.vb.
   ===================================================================== */
.lg-hero { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.lg-hero > .lg-panel { justify-self: center; width: 100%; max-width: 480px; }

/* Akzentfarbe je Kategorie (für Illustration und Eyebrow) */
.lg-intro { --akzent: var(--sky); --akzent-2: var(--mint); animation: lg-fade .5s ease; }
.lg-intro[data-kategorie="begruessung"] { --akzent: #f6a23a; --akzent-2: #ffd27a; }
.lg-intro[data-kategorie="humor"] { --akzent: #ff7a59; --akzent-2: #ffc36b; }
.lg-intro[data-kategorie="ki"] { --akzent: #8b6cff; --akzent-2: #5fd4ff; }
.lg-intro[data-kategorie="nachhaltigkeit"] { --akzent: #23b37a; --akzent-2: #9be15d; }
.lg-intro[data-kategorie="inspiration"] { --akzent: #f2c94c; --akzent-2: #2fd1a6; }
.lg-intro[data-kategorie="workflow"] { --akzent: #3d8bff; --akzent-2: #2fd1a6; }
.lg-intro[data-kategorie="zeit"] { --akzent: #2fc6d1; --akzent-2: #8fc2ff; }

.lg-intro h1 { max-width: 640px; text-wrap: balance; }
.lg-intro h1.lg-mittel { font-size: clamp(30px, 4vw, 48px); }
.lg-intro h1.lg-lang { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; }
.lg-intro .lg-lead { margin-bottom: 26px; }

/* ---------- Bildfläche (feste Größe, kein Springen beim Laden) ---------- */
.lg-media {
    position: relative; margin: 0 0 24px; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    background:
        radial-gradient(420px 220px at 85% 10%, color-mix(in srgb, var(--akzent) 45%, transparent), transparent 70%),
        radial-gradient(380px 220px at 10% 100%, color-mix(in srgb, var(--akzent-2) 35%, transparent), transparent 70%),
        rgba(255,255,255,.06);
    box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}
.lg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-media .lg-illu { display: none; }
.lg-media.ohne-bild img { display: none; }
.lg-media.ohne-bild .lg-illu { display: block; }

/* Illustration, wenn kein Bild hinterlegt oder das Bild nicht erreichbar ist */
.lg-illu { position: absolute; inset: 0; }
.lg-tile {
    position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 30px;
    display: grid; place-items: center; font-size: 50px; color: #fff;
    background: linear-gradient(135deg, var(--akzent), var(--akzent-2));
    box-shadow: 0 20px 50px -14px color-mix(in srgb, var(--akzent) 80%, black), inset 0 1px 0 rgba(255,255,255,.35);
    animation: lg-schweben 7s ease-in-out infinite;
}
.lg-doc {
    position: absolute; width: 112px; height: 140px; border-radius: 14px; background: rgba(255,255,255,.92);
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); display: grid; place-items: end center; padding-bottom: 14px; font-size: 22px;
}
.lg-doc::before {
    content: ""; position: absolute; left: 16px; right: 16px; top: 18px; height: 54px;
    background: linear-gradient(#cfd8e8 0 0) 0 0 / 70% 8px no-repeat, linear-gradient(#e3e9f3 0 0) 0 20px / 100% 6px no-repeat,
                linear-gradient(#e3e9f3 0 0) 0 34px / 85% 6px no-repeat, linear-gradient(#e3e9f3 0 0) 0 48px / 60% 6px no-repeat;
}
.lg-doc-a { left: 14%; top: 24%; transform: rotate(-9deg); color: var(--navy); animation: lg-schweben 9s ease-in-out infinite -2s; }
.lg-doc-b { right: 14%; top: 18%; transform: rotate(7deg); color: var(--ok); animation: lg-schweben 8s ease-in-out infinite -5s; }
@keyframes lg-schweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Produktvorteile ---------- */
.lg-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 600px; }
.lg-chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.88); padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.lg-chips i { color: var(--mint); font-size: 16px; }

/* ---------- Kopf der Anmeldekarte: Logo + Sprache ---------- */
.lg-panel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.lg-logo { height: 44px; max-width: 70%; border-radius: 999px; box-shadow: 0 6px 18px -8px rgba(11,58,130,.55); }
.lg-sprache { position: relative; display: flex; align-items: center; margin: 0; }
.lg-sprache > i { position: absolute; left: 11px; color: var(--muted); pointer-events: none; font-size: 14px; }
.lg-sprache select {
    appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235d6a80' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 10px center / 11px;
    padding: 7px 28px 7px 30px; cursor: pointer; max-width: 160px;
}
.lg-sprache select:hover { border-color: #b9c8e0; }
.lg-sprache select:focus-visible { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(61,139,255,.2); }
/* Sprache steht in der Karte, die Auswahl im Fuß entfällt dann (Version bleibt) */
body.login-modern:has(.lg-sprache) > footer form[action$="/Culture/Index"] { display: none; }

/* Sichtbarer Fokus für Tastaturbedienung */
.lg-link:focus-visible, .lg-eye:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ---------- Tablet/Smartphone: Anmeldung zuerst, Motiv kompakt ---------- */
@media (max-width: 980px) {
    .lg-hero { grid-template-columns: 1fr; }
    .lg-hero > .lg-panel { max-width: 520px; }
    .lg-intro { max-width: 520px; width: 100%; justify-self: center; }
    .lg-intro .lg-lead { display: block; font-size: 16px; margin: 10px 0 0; }
    .lg-intro h1, .lg-intro h1.lg-mittel, .lg-intro h1.lg-lang { font-size: 26px; margin-top: 14px; }
    .lg-media, .lg-chips { display: none; }
}
@media (max-width: 520px) {
    .lg-panel-kopf { margin-bottom: 18px; }
    .lg-logo { height: 36px; }
}

/* ---------- Sprachauswahl als Tom Select (Pill wie zuvor) ---------- */
.lg-sprache > i { z-index: 2; }
.lg-sprache .ts-wrapper { min-width: 140px; }
.lg-sprache .ts-wrapper.single .ts-control,
.lg-sprache .ts-wrapper.single.input-active .ts-control {
    font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 0;
    border: 1.5px solid var(--line); border-radius: 999px; box-shadow: none;
    padding: 7px 30px 7px 30px;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235d6a80' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 11px center / 11px;
    transition: border-color .2s, box-shadow .2s;
}
.lg-sprache .ts-wrapper.single .ts-control:hover { border-color: #b9c8e0; }
.lg-sprache .ts-wrapper.focus .ts-control { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(61,139,255,.2); }
.lg-sprache .ts-wrapper.dropdown-active .ts-control { border-radius: 999px; }
.lg-sprache .ts-wrapper.single .ts-control::after { display: none; }

body.login-modern > .ts-dropdown {
    margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink);
    box-shadow: 0 18px 40px -16px rgba(2,16,45,.45); font-size: 14px; z-index: 1060;
}
body.login-modern > .ts-dropdown .option { padding: 9px 14px; }
body.login-modern > .ts-dropdown .option.active { background: #eef4ff; color: var(--navy); }
body.login-modern > .ts-dropdown .option.selected { font-weight: 600; color: var(--navy); }
/* Logo darf schrumpfen, damit Logo und Sprachauswahl in schmale Karten passen */
.lg-panel-kopf .lg-logo { flex: 0 1 auto; min-width: 0; width: auto; max-width: 100%; height: auto; max-height: 44px; object-fit: contain; object-position: left center; }
.lg-panel-kopf .lg-sprache { flex: none; }
.lg-sprache .ts-wrapper { min-width: 128px; }
@media (max-width: 520px) { .lg-panel-kopf .lg-logo { max-height: 36px; } }

/* Site.css sperrt html/body (height: 100%; overflow: hidden) für die App-Oberfläche.
   Auf den Seiten im neuen Design soll die Seite normal scrollen (Corporate, Login auf kleinen Bildschirmen). */
html:has(> body.login-modern), body.login-modern { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }

/* =====================================================================
   Einzelkarte (Passwort ändern, MFA einrichten, MFA bestätigen) – DevOps #749
   ===================================================================== */
.lg-solo { flex: 1; display: grid; place-items: center; padding: 28px clamp(16px, 5vw, 64px) 40px; }
.lg-solo > .lg-panel { width: 100%; max-width: 480px; }
.lg-solo > .lg-panel.lg-breit { max-width: 820px; }
.lg-solo .lg-panel-kopf { justify-content: center; margin-bottom: 22px; }
.lg-titel { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.lg-titel .lg-badge { width: 48px; height: 48px; border-radius: 15px; font-size: 22px; margin: 0; flex: none; }
.lg-titel h2 { margin: 0; }

/* Hinweis- und Fehlerboxen */
.lg-hinweis { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; margin: 0 0 20px; font-size: 14px; line-height: 1.5; background: #eef4ff; border: 1px solid #c7dcff; color: #1d3a6b; }
.lg-hinweis > i { font-size: 18px; margin-top: 1px; color: var(--sky); }
.lg-hinweis.warnung { background: #fff7e6; border-color: #f5d79a; color: #5c4210; }
.lg-hinweis.warnung > i { color: #d69200; }
.lg-panel .validation-summary-errors { color: var(--err); background: #fdeef0; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.lg-panel .validation-summary-errors ul { margin: 0; padding-left: 18px; }
.lg-meldung { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.lg-meldung.ok { color: var(--ok); }
.lg-meldung.fehler { color: var(--err); }

/* Passwortregeln */
.lg-regeln { list-style: none; margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: #f5f8fd; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; color: #3b475c; }
.lg-regeln-titel { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lg-regeln li { display: flex; gap: 8px; align-items: flex-start; }
.lg-regeln i { color: var(--ok); }
@media (max-width: 520px) { .lg-regeln { grid-template-columns: 1fr; } }

/* 6-stelliger Code (MFA) wie die PIN der Demo-Seite */
.lg-code { display: flex; gap: 10px; justify-content: center; margin: 10px 0 4px; }
.lg-code input { width: 100%; max-width: 56px; aspect-ratio: 4 / 5; text-align: center; font: 700 26px/1 Consolas, "SF Mono", monospace; border: 1.5px solid var(--line); border-radius: 14px; color: var(--navy); background: #f8faff; transition: border-color .2s, box-shadow .2s, transform .15s; padding: 0; }
.lg-code input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(61,139,255,.15); transform: translateY(-1px); background: #fff; }
.lg-code-label { display: block; font-size: 13px; font-weight: 600; color: #33415a; text-align: center; margin-top: 4px; }
@media (max-width: 420px) { .lg-code { gap: 6px; } .lg-code input { font-size: 22px; border-radius: 10px; } }

/* MFA einrichten */
.lg-mfa { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; margin: 18px 0 8px; }
.lg-qr { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(11,58,130,.5); display: grid; place-items: center; }
.lg-qr img, .lg-qr canvas { max-width: 100%; height: auto; }
.lg-schritt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.lg-schritt b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 12px; }
.lg-kopierfeld { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #f5f8fd; margin-bottom: 6px; }
.lg-kopierfeld code, .lg-kopierfeld pre { flex: 1; min-width: 0; margin: 0; font: 600 14px/1.4 Consolas, "Cascadia Mono", monospace; color: var(--navy); background: none; padding: 0; white-space: pre-wrap; word-break: break-all; }
.lg-kopieren { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(20,32,51,.12); cursor: pointer; }
.lg-kopieren:hover { background: var(--navy); color: #fff; }
.lg-klein { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.lg-recovery { list-style: none; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #f5f8fd; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; max-height: 200px; overflow: auto; }
.lg-recovery code { font: 600 13px Consolas, monospace; color: #33415a; word-break: break-all; }
.lg-trenner { height: 1px; background: var(--line); margin: 22px 0 18px; }
@media (max-width: 720px) { .lg-mfa { grid-template-columns: 1fr; } .lg-qr { max-width: 260px; margin: 0 auto; } }

/* Keine eigene Stapelebene für die Seiten-Wrapper: sonst liegen Bootstrap-Modale (stehen im Inhalt)
   UNTER dem Modal-Hintergrund, den Bootstrap an <body> hängt – Seite dunkel, nichts klickbar.
   Über dem fixierten Hintergrund (bg-mesh, body::before) liegt der Inhalt auch so, durch die Reihenfolge. */
body.login-modern > div:first-of-type, .login-modern .lg-page, .login-modern .corp-page { z-index: auto; }

/* Modal-/Seitenleisten-Hintergrund als Milchglas statt Schwarz (Login, Corporate) */
body.login-modern .modal-backdrop,
body.login-modern .offcanvas-backdrop { background: rgba(4, 25, 61, .28); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
body.login-modern .modal-backdrop.show,
body.login-modern .offcanvas-backdrop.show { opacity: 1; }
body.login-modern .modal-backdrop.fade,
body.login-modern .offcanvas-backdrop.fade { transition: opacity .25s ease; }

/* ---------- Passwortstärke und Live-Regeln (DevOps #750) ---------- */
.lg-staerke { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; }
.lg-staerke-balken { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.lg-staerke-balken i { height: 6px; border-radius: 99px; background: #e6ebf3; transition: background .25s; }
.lg-staerke-text { flex: none; min-width: 112px; font-size: 12.5px; color: var(--muted); text-align: right; }
.lg-staerke-text b { color: var(--ink); }
.lg-staerke[data-stufe="1"] .lg-staerke-balken i:nth-child(-n+1) { background: var(--err); }
.lg-staerke[data-stufe="2"] .lg-staerke-balken i:nth-child(-n+2) { background: #f0a020; }
.lg-staerke[data-stufe="3"] .lg-staerke-balken i:nth-child(-n+3) { background: #3d8bff; }
.lg-staerke[data-stufe="4"] .lg-staerke-balken i { background: linear-gradient(90deg, var(--ok), var(--mint)); }
.lg-staerke[data-stufe="1"] b { color: var(--err); }
.lg-staerke[data-stufe="2"] b { color: #b56f00; }
.lg-staerke[data-stufe="3"] b { color: var(--navy); }
.lg-staerke[data-stufe="4"] b { color: var(--ok); }

.lg-regeln-live { grid-template-columns: 1fr; gap: 7px; }
.lg-regeln-live li i { color: #a3aec0; transition: color .2s; }
.lg-regeln-live li.ok { color: var(--ink); }
.lg-regeln-live li.ok i { color: var(--ok); }
.lg-regeln-live li.nein i { color: var(--err); }
.lg-regeln-live .lg-regel-info i { color: var(--sky); }
.lg-regeln-live .lg-regel-tipp { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.lg-regeln-live .lg-regel-tipp i { color: #e0a800; }
.lg-regeln-live .lg-regel-zusatz { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
