/* ==========================================================================
   css/login.css — Anmeldeseite (login.php), Design-Linie "Circuit" (20.10.2026)
   Vorher standen die Regeln doppelt im <style> von login.php: ein alter
   Navy-Block (02.08.) und darunter die Circuit-Overrides (22.08.), die ihn
   ueberschrieben haben. Jetzt EIN Satz Regeln, hier gesammelt.
   Sven 20.10.: Hintergrund ohne Parallax, Technik-Effekte (js/login_fx.js),
   News links, neueste BitMonz rechts, Server/Realm/Spieler auffaelliger,
   "Account erstellen" auffaelliger, Box transparenter, Lichtstrahl laeuft
   wie im Spielmenue um den Rahmen.
   ========================================================================== */
@property --cx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes cxSpin { to { --cx-ang: 360deg; } }

:root {
    --font: 'JetBrains Mono', 'Courier New', monospace;
    --cy: #33d6ff; --cy-rgb: 51, 214, 255;
    --gr: #5be27a; --gr-rgb: 91, 226, 122;
    --pu: #c063ff; --gold: #ffd76a;
    --bad: #ff6b6b; --bad-rgb: 255, 107, 107;
    --txt: #e6eefc; --muted: #93a6c9; --label: #c9d5ec;
    --hand: url(../img/cursors/hand.png) 2 0, auto;
    --mouse: url(../img/cursors/mouse.png) 2 0, auto;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { cursor: var(--mouse); }
body {
    font-family: var(--font);
    color: var(--txt);
    background: #060917;
    height: 100vh;
    overflow: hidden;
    position: relative;
    padding-right: 0 !important;   /* kein Layout-Sprung, wenn SweetAlert oeffnet */
}
button, a, .flag-btn { cursor: var(--hand); }

/* ── Chamfer-Baustein: ::before = Rahmen, ::after = Fuellung ───────────────── */
.cx {
    --cut: 12px; --bw: 1px;
    --bd: linear-gradient(135deg, rgba(var(--cy-rgb), .6), #1c3468 40%, #1c3468 65%, rgba(var(--cy-rgb), .4));
    --fill: linear-gradient(170deg, rgba(12, 22, 56, .72), rgba(6, 10, 26, .78));
    position: relative; isolation: isolate;
}
.cx::before, .cx::after {
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
                       calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.cx::before { background: var(--bd); }
/* 20.10.: Rahmen-Ebene als RING (Aussenkontur im Uhrzeigersinn, Innenkontur gegenlaeufig -> Loch).
   Sonst scheint der Verlauf durch halbtransparente Fuellungen und der Lichtstrahl der Login-Box
   wirkte wie ein Radar ueber der ganzen Flaeche (Sven). Jetzt laeuft er nur durch den Rahmen,
   wie bei den Hover-Karten im Spielmenue. --k = Versatz der Innenecke auf der 45-Grad-Schraege. */
.cx::before {
    --k: calc(var(--cut) + var(--bw) * .42);
    clip-path: polygon(
        var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
        calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut), var(--cut) 0,
        var(--k) var(--bw), var(--bw) var(--k), var(--bw) calc(100% - var(--k)), var(--k) calc(100% - var(--bw)),
        calc(100% - var(--k)) calc(100% - var(--bw)), calc(100% - var(--bw)) calc(100% - var(--k)),
        calc(100% - var(--bw)) var(--k), calc(100% - var(--k)) var(--bw), var(--k) var(--bw));
}
.cx::after { inset: var(--bw); z-index: -1; background: var(--fill); }
/* Lichtstrahl laeuft um den Rahmen (wie .game-menu im Spiel). --cx-ang ist
   registriert und erbt NICHT, darum wird --bd am Element selbst gebaut (dort
   loest var(--cx-ang) den animierten Winkel auf) und an ::before vererbt.
   Nur der Rahmen malt neu (eigene Ebene), die Fuellung bleibt stehen. */
.cx.beam {
    --bw: 2px;
    animation: cxSpin 6s linear infinite;
    --bd: conic-gradient(from var(--cx-ang) at 50% 50%,
        rgba(var(--cy-rgb), .38) 0deg 250deg,
        rgba(var(--cy-rgb), .75) 296deg,
        #ffffff 318deg,
        var(--cy) 332deg,
        rgba(var(--cy-rgb), .38) 360deg);
}
.cx.beam::before { will-change: transform; }

/* ── Hintergrund (ruhend) + Effekt-Ebene ───────────────────────────────────── */
.bg-parallax { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-image { position: absolute; inset: 0; background: center 90% / cover no-repeat; /* Bild kommt inline aus login.php (filemtime), Sven 20.10.: 90% */ }
.bg-shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 50% 42%, rgba(8, 15, 30, 0) 38%, rgba(8, 15, 30, .55) 100%),
        linear-gradient(180deg, rgba(8, 15, 30, .38) 0%, rgba(8, 15, 30, .10) 30%, rgba(8, 15, 30, .16) 62%, rgba(6, 11, 22, .66) 100%);
}
#loginFx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ── Logo ──────────────────────────────────────────────────────────────────── */
.logo-container { position: fixed; top: 4vh; left: 50%; transform: translateX(-50%); z-index: 5; text-align: center; }
.logo-container img {
    max-width: min(600px, 88vw);
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .65)) drop-shadow(0 0 22px rgba(var(--cy-rgb), .25));
    user-select: none; -webkit-user-drag: none;
}

/* ── Sprache (oben rechts) ─────────────────────────────────────────────────── */
.lang-switcher { position: fixed; top: 18px; right: 20px; z-index: 6; display: flex; gap: 8px; padding: 7px 9px; --cut: 7px; }
.flag-btn { width: 34px; height: 24px; opacity: .45; border: 2px solid transparent; transition: opacity .15s, border-color .15s; }
.flag-btn:hover { opacity: .85; }
.flag-btn.active { opacity: 1; border-color: var(--cy); box-shadow: 0 0 10px rgba(var(--cy-rgb), .5); }

/* ── Login-Karte ───────────────────────────────────────────────────────────── */
.login-container { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(370px, 92vw); }
.login-container form {
    --cut: 16px; --bw: 1.5px;
    --fill: linear-gradient(170deg, rgba(12, 22, 56, .62), rgba(6, 10, 26, .70));
    padding: 26px 26px 20px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; margin-bottom: 7px;
    color: var(--cy); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.form-group input {
    width: 100%; padding: 12px 13px;
    color: var(--txt); font-family: var(--font); font-size: 14px;
    background: rgba(5, 9, 24, .82); border: 1px solid rgba(var(--cy-rgb), .35); border-radius: 0;
    transition: border-color .15s, box-shadow .15s;
}
.form-group input::placeholder { color: #55688c; }
.form-group input:focus { outline: none; border-color: var(--cy); box-shadow: 0 0 0 2px rgba(var(--cy-rgb), .18), 0 0 10px rgba(var(--cy-rgb), .25); }

.login-btn {
    --cut: 10px; --bw: 1.5px;
    --bd: linear-gradient(90deg, var(--cy), rgba(var(--cy-rgb), .55) 30%, rgba(var(--cy-rgb), .55) 70%, var(--cy));
    --fill: linear-gradient(180deg, #0f5f86, #0a3f5c 60%, #083049);
    width: 100%; margin-top: 4px; padding: 13px 16px; border: 0; background: none;
    color: #f6f9ff; font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(var(--cy-rgb), .3));
    transition: filter .15s, transform .1s;
}
.login-btn:hover:not(:disabled) {
    animation: cxSpin 1.5s linear infinite; filter: brightness(1.1) drop-shadow(0 0 16px rgba(var(--cy-rgb), .55));
    --bd: conic-gradient(from var(--cx-ang) at 50% 50%, rgba(var(--cy-rgb), .5) 0deg 240deg, #9feeff 300deg, #ffffff 322deg, var(--cy) 338deg, rgba(var(--cy-rgb), .5) 360deg);
}
.login-btn:active:not(:disabled) { transform: translateY(1px); }
.login-btn:disabled { opacity: .45; cursor: var(--mouse); filter: none; }
.error-message { color: #ff8f8f; font-size: 12.5px; text-align: center; min-height: 16px; margin-top: 12px; }

/* ── Server + Realm (unten links, auffaelliger) ────────────────────────────── */
.server-status {
    position: fixed; left: 18px; bottom: 16px; z-index: 6;
    display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 15px; --cut: 9px;
    --bd: linear-gradient(90deg, rgba(var(--st-rgb), .9), rgba(var(--st-rgb), .35) 60%, rgba(var(--st-rgb), .7));
    --st-rgb: var(--bad-rgb);
    filter: drop-shadow(0 0 12px rgba(var(--st-rgb), .28));
}
.server-status.is-online { --st-rgb: var(--gr-rgb); }
.status-indicator { width: 12px; height: 12px; flex: 0 0 auto; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: rgb(var(--st-rgb)); }
.server-status.is-online .status-indicator { animation: stPulse 2.2s ease-in-out infinite; }
@keyframes stPulse { 50% { opacity: .55; } }
.status-text { color: #fff; font-size: 13.5px; font-weight: 800; letter-spacing: .4px; }
.status-sub { color: var(--label); font-size: 11.5px; margin-top: 3px; letter-spacing: .2px; }
.status-sub b { color: rgb(var(--st-rgb)); font-weight: 800; }
.status-sub:empty { display: none; }

/* ── Unten rechts: Account erstellen (auffaelliger) + Beenden ─────────────── */
.bottom-right-actions { position: fixed; right: 18px; bottom: 16px; z-index: 6; display: flex; gap: 10px; align-items: center; }
.action-btn {
    --cut: 9px; --bw: 1.5px;
    border: 0; background: none; padding: 12px 18px;
    color: var(--label); font-family: var(--font); font-size: 12.5px; font-weight: 800; letter-spacing: .5px;
    transition: filter .15s, transform .1s;
}
.action-btn:hover { color: #fff; filter: brightness(1.15); }
.action-btn.primary {
    --bd: linear-gradient(90deg, var(--gr), rgba(var(--gr-rgb), .55) 30%, rgba(var(--gr-rgb), .55) 70%, var(--gr));
    --fill: linear-gradient(180deg, #1f8a45, #145c2f 60%, #0f4a26);
    padding: 14px 24px; font-size: 14px; color: #f4fff6; text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    filter: drop-shadow(0 0 14px rgba(var(--gr-rgb), .35));
}
.action-btn.primary:hover {
    animation: cxSpin 1.5s linear infinite; filter: brightness(1.1) drop-shadow(0 0 20px rgba(var(--gr-rgb), .6));
    --bd: conic-gradient(from var(--cx-ang) at 50% 50%, rgba(var(--gr-rgb), .5) 0deg 240deg, #b8ffc9 300deg, #ffffff 322deg, var(--gr) 338deg, rgba(var(--gr-rgb), .5) 360deg);
}
.action-btn:active { transform: translateY(1px); }

/* ── Seitenkaesten: News (links), neue BitMonz (rechts) ───────────────────── */
.lp-panel {
    position: fixed; z-index: 4; top: 50%; transform: translateY(-50%);
    width: clamp(260px, 21vw, 320px); max-height: 62vh; overflow: hidden;
    --cut: 14px;
    padding: 16px 18px 16px;
    display: flex; flex-direction: column;
}
.lp-panel.left { left: clamp(18px, 3vw, 48px); }
.lp-panel.right { right: clamp(18px, 3vw, 48px); }
.lp-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 10.5px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: var(--cy);
    padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(var(--cy-rgb), .22);
}
.lp-head::before { content: "//"; color: rgba(var(--cy-rgb), .5); letter-spacing: 0; margin-right: 6px; }
.lp-head span { margin-right: auto; }
.lp-head a { color: var(--muted); text-decoration: none; letter-spacing: .6px; font-weight: 700; text-transform: none; font-size: 11px; }
.lp-head a:hover { color: #fff; }

.lp-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 11px; }
.lp-tag { padding: 2px 7px; color: var(--cy); border: 1px solid rgba(var(--cy-rgb), .45); background: rgba(var(--cy-rgb), .1); font-weight: 700; letter-spacing: .8px; }
.lp-date { color: var(--gold); font-weight: 700; }
.lp-news h3 { font-size: 15px; letter-spacing: -.3px; margin-bottom: 8px; color: #fff; }
.lp-panel > * { flex: 0 0 auto; }
.lp-news .lp-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #1c3468 transparent; }
.lp-news p {
    color: var(--label); font-size: 12.5px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-news.open p { display: block; -webkit-line-clamp: unset; }
.lp-more {
    align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: none;
    color: var(--cy); font-family: var(--font); font-size: 11.5px; font-weight: 800; letter-spacing: .6px;
}
.lp-more::before { content: "+ "; }
.lp-news.open .lp-more::before { content: "- "; }
.lp-more:hover { color: #fff; }

.lp-mons { gap: 0; }
.lp-mon {
    width: 100%; border: 0; border-bottom: 1px solid rgba(var(--cy-rgb), .1); background: none; font-family: var(--font); text-align: left;
    display: flex; align-items: center; gap: 12px; padding: 8px 6px; text-decoration: none; color: inherit;
    transition: background .15s;
}
.lp-mon:last-child { border-bottom: 0; }
.lp-mon:hover { background: rgba(var(--cy-rgb), .07); }
.lp-mon .st {
    width: 58px; height: 58px; flex: 0 0 auto; position: relative;
    background: #0d1930 center / cover no-repeat; border: 1px solid rgba(var(--cy-rgb), .3);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.lp-mon .st img { width: 50px; height: 50px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.lp-mon b { display: block; font-size: 13.5px; color: #fff; letter-spacing: -.2px; }
.lp-mon small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.lp-mon .new { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; color: var(--gr); border: 1px solid rgba(var(--gr-rgb), .5); padding: 2px 5px; }

/* ── BitMon-Fenster (Klick in "Neue BitMonz"), Aufbau wie die Pedia-Karte ── */
.lp-modal {
    position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 24px;
    background: rgba(3, 5, 14, .78); backdrop-filter: blur(3px);
}
.lp-modal.on { display: flex; }
.lp-modal-box {
    --cut: 20px; --bw: 1.5px;
    --bd: linear-gradient(135deg, var(--cy), #1d5fa8 30%, #24306e 60%, var(--pu));
    --fill: linear-gradient(170deg, #0c1638, #070b1f 70%);
    width: min(820px, 100%); max-height: min(88vh, 640px);
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    filter: drop-shadow(0 0 28px rgba(var(--cy-rgb), .25)) drop-shadow(0 24px 50px rgba(0, 0, 0, .7));
    animation: lpPop .25s cubic-bezier(.2, 1.2, .5, 1);
}
@keyframes lpPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.lp-close {
    position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; padding: 0; border: 0; background: none;
    --cut: 7px;
    --bd: linear-gradient(90deg, var(--bad), rgba(var(--bad-rgb), .55) 30%, rgba(var(--bad-rgb), .55) 70%, var(--bad));
    --fill: linear-gradient(180deg, #8a2020, #5c1414 60%, #4a0f0f);
    color: #fff; display: flex; align-items: center; justify-content: center;
}
.lp-close svg { width: 14px; height: 14px; }
.lp-close:hover { filter: brightness(1.2); }
.lp-stage {
    position: relative; min-height: 300px; background: #0d1930 center / cover no-repeat;
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
    display: flex; align-items: center; justify-content: center; overflow: hidden;   /* 20.10.: mittig statt unten (Sven) */
}
.lp-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 26, .55)); pointer-events: none; }
.lp-stage img.big {
    position: relative; z-index: 1; width: 78%; max-width: 256px;
    image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .65));
    animation: lpBreath 3.2s ease-in-out infinite; transform-origin: 50% 100%;
}
@keyframes lpBreath { 50% { transform: scale(1.02, .985); } }
.lp-mbody { padding: 30px 30px 26px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #1c3468 transparent; }
.lp-mbody h2 { font-size: 30px; letter-spacing: -1px; color: #fff; margin: 0 48px 12px 0; }
.lp-eles { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.lp-ele { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; font-size: 13px; font-weight: 800; }
.lp-ele img, .lp-role img { width: 18px; height: 18px; image-rendering: pixelated; }
.lp-role {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; margin-bottom: 16px;
    border: 1px solid var(--role); color: var(--role); font-size: 13px; font-weight: 800; background: rgba(5, 9, 24, .5);
}
.lp-role small { color: var(--muted); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; }
.lp-role[hidden] { display: none; }
.lp-desc { color: var(--label); font-size: 13.5px; line-height: 1.75; }
.lp-kicker { margin-top: 22px; font-size: 10.5px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: var(--cy); }
.lp-kicker::before { content: "// "; color: rgba(var(--cy-rgb), .5); letter-spacing: 0; }
.lp-stats { margin-top: 12px; display: grid; gap: 10px; }
.lp-stat { display: grid; grid-template-columns: 100px 1fr 34px; gap: 11px; align-items: center; font-size: 12px; }
.lp-stat .k { color: var(--muted); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.lp-stat .v { color: #fff; font-weight: 800; text-align: right; }
.lp-stat .bar { height: 8px; background: rgba(4, 9, 20, .85); border: 1px solid rgba(var(--cy-rgb), .15); overflow: hidden; }
.lp-stat .bar i { display: block; height: 100%; background: linear-gradient(90deg, #3d8bff, var(--cy)); animation: lpGrow .6s cubic-bezier(.2, .9, .3, 1); }
.lp-stat .bar.hp i { background: linear-gradient(90deg, #25b862, #57e58c); }
.lp-stat .bar.mp i { background: linear-gradient(90deg, #2f6fe0, #6cc4ff); }
@keyframes lpGrow { from { width: 0; } }
@media (max-width: 720px) {
    .lp-modal-box { grid-template-columns: 1fr; overflow-y: auto; max-height: 90vh; }
    .lp-stage { min-height: 230px; clip-path: none; }
}

/* ── Tiefenschaerfe (Sven 20.10.: "BGs hinter den BitMonz immer blurry, Fokus aufs BitMon"): eine Weichzeichner-Ebene
   (backdrop-filter) liegt UEBER dem Hintergrundbild und UNTER dem Sprite. Nur CSS, kein Markup noetig, darum
   ueberall gleich: Login, Website (Pedia-Karten, Pedia-Fenster, Band), Spielmenue (BitMon-Portrait).
   Kinder, die scharf bleiben sollen, brauchen position (relative/absolute). */
.lp-stage::before, .lp-mon .st::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    -webkit-backdrop-filter: blur(3px) brightness(.88); backdrop-filter: blur(3px) brightness(.88);
}
.lp-mon .st::before { -webkit-backdrop-filter: blur(1.5px) brightness(.9); backdrop-filter: blur(1.5px) brightness(.9); }
.lp-mon .st img { position: relative; }

/* ── Boot-Zeilen + HUD-Ecken ───────────────────────────────────────────────── */
.fx-boot {
    position: fixed; top: 18px; left: 22px; z-index: 6; pointer-events: none;
    font-size: 12px; line-height: 1.75; color: var(--label);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 10px rgba(4, 8, 22, .9);
}
.fx-boot div { opacity: 0; white-space: nowrap; }
.fx-boot div.on { opacity: 1; }
.fx-boot b { color: var(--gr); font-weight: 700; margin-right: 6px; }
.fx-boot div:first-child span { color: var(--cy); font-weight: 700; }
.fx-boot.done div:last-child span::after {
    content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px;
    background: var(--cy); box-shadow: 0 0 8px rgba(var(--cy-rgb), .9);
    animation: fxCaret 1.05s steps(1) infinite;
}
@keyframes fxCaret { 50% { opacity: 0; } }
.fx-corner { position: fixed; z-index: 2; width: 26px; height: 26px; pointer-events: none;
    border: 0 solid rgba(var(--cy-rgb), .7); filter: drop-shadow(0 0 6px rgba(var(--cy-rgb), .6)); }
.fx-corner.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.fx-corner.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.fx-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.fx-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

/* ── Responsive: grosses Logo staffelweise kleiner, Karte rutscht mit ─────── */
@media (max-height: 900px) {
    .logo-container { top: 3vh; }
    .logo-container img { max-width: min(620px, 80vw); }
    .login-container { top: 52%; }
}
@media (max-height: 800px) {
    .logo-container img { max-width: min(480px, 72vw); }
    .login-container { top: 53%; }
}
@media (max-height: 700px) {
    .logo-container { top: 2vh; }
    .logo-container img { max-width: min(340px, 60vw); }
    .login-container { top: 55%; }
}
/* Seitenkaesten nur, wenn neben der Karte Platz ist */
@media (max-width: 1180px), (max-height: 620px) { .lp-panel { display: none; } }
@media (max-width: 700px) { .fx-boot { display: none; } }
/* 20.10. Mobil (Sven-Screenshot Handy): Fuss als saubere Spalte in Kartenbreite statt zwei versetzter
   Kaesten, leere Fehlerzeile frisst keinen Platz, HUD-Ecken weg (lagen auf dem Button). */
@media (max-width: 520px) {
    .logo-container { top: max(3vh, 64px); }
    .logo-container img { max-width: 80vw; }
    .login-container { width: calc(100vw - 32px); }
    .login-container form { padding: 22px 20px 18px; }
    .form-group { margin-bottom: 14px; }
    .form-group input { padding: 13px 12px; font-size: 16px; }   /* 16 px: iOS zoomt sonst beim Antippen */
    .login-btn { padding: 14px 16px; }
    .error-message:empty { min-height: 0; margin-top: 0; }
    .server-status, .bottom-right-actions { left: 16px; right: 16px; }
    .server-status { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 10px 14px; gap: 12px; }
    .bottom-right-actions { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    .bottom-right-actions .action-btn { flex: 1 1 auto; text-align: center; }
    .action-btn.primary { padding: 15px 14px; font-size: 14px; }
    .status-text { font-size: 12.5px; }
    .status-sub { font-size: 11px; }
    .fx-corner { display: none; }
    .lang-switcher { top: 14px; right: 16px; padding: 6px 8px; }
    .flag-btn { width: 30px; height: 21px; }
}
/* niedrige Handys (z. B. 375x667): Karte etwas hoeher, damit der Fuss frei bleibt */
@media (max-width: 520px) and (max-height: 720px) {
    .logo-container { top: 52px; }
    .logo-container img { max-width: 62vw; }
    .login-container { top: 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .cx.beam, .login-btn:hover, .action-btn.primary:hover, .lp-stage img.big, .lp-modal-box { animation: none; }
}

/* ── SweetAlert im Circuit-Look ────────────────────────────────────────────── */
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) { padding-right: 0 !important; overflow: hidden !important; }
body.swal2-height-auto { height: 100vh !important; }
.swal2-container { z-index: 99999 !important; }
.swal2-popup {
    font-family: var(--font) !important;
    background: linear-gradient(170deg, #0c1638, #070b1f) !important;
    border: 1px solid rgba(var(--cy-rgb), .5) !important; border-radius: 0 !important; color: var(--txt) !important;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}
.swal2-title { color: var(--txt) !important; font-size: 19px !important; }
.swal2-html-container { color: var(--label) !important; font-size: 13.5px !important; }
.swal2-confirm {
    font-family: var(--font) !important; font-weight: 800 !important;
    background: linear-gradient(180deg, #0f5f86, #0a3f5c 60%, #083049) !important;
    border: 1px solid var(--cy) !important; border-radius: 0 !important; box-shadow: 0 0 12px rgba(var(--cy-rgb), .3) !important;
}
.swal2-timer-progress-bar { background: var(--cy) !important; }
