/*
 * USMS – Login- & Ladescreen-Design (Command-Look).
 *
 * Gemeinsame Optik für alle Anmelde-Ansichten (Auswahlseite, Dashboard-Login,
 * UCP-Login, Academy-Login, Wartungs-Screen) und den Erfolgs-Ladescreen nach
 * dem Login. Farbwelt wie das Staff-Dashboard (static/usms-command.css):
 * Anthrazit/Navy/Stahlblau mit sparsamen, bewussten Gold-Akzenten.
 *
 * Die Token aus static/usms-theme.css werden dafür NUR im Geltungsbereich
 * body.login-body neu belegt – UCP-/Academy-Innenseiten bleiben unberührt.
 *
 * Bausteine (HTML-Includes):
 *   templates/usms_login_bg.html  – animierte Einsatzkarte (.login-map)
 *   templates/usms_seal.html      – Marshal-Stern-Siegel (hier blau/gold umgefärbt)
 *
 * Wird diese Datei eingebunden, darf static/usms-bg.js NICHT zusätzlich laden –
 * die Einsatzkarte ersetzt den Canvas-Hintergrund auf diesen Seiten.
 */

/* ── Keyframes ──────────────────────────────────────────────────────────────── */
@keyframes ls-spin        { to { transform: rotate(360deg); } }
@keyframes ls-shimmer     { 0% { transform: translateX(-120%); } 100% { transform: translateX(560%); } }
@keyframes ls-pulseDot    { 0%,100% { opacity:.4; } 50% { opacity:1; } }
@keyframes ls-rowIn       { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }
@keyframes ls-wartungPulse{ 0%,100% { opacity:1; } 50% { opacity:.35; } }
@keyframes ls-pop         { from { transform: scale(.3); opacity:0; } to { transform: scale(1); opacity:1; } }
@keyframes ls-glint       { 0% { transform: translateX(-110%); } 55%,100% { transform: translateX(360%); } }
@keyframes ops-drift      { from { transform: scale(1.03) translate(0,0); } to { transform: scale(1.11) translate(-1.6%,-1.1%); } }
@keyframes ops-dash       { to { stroke-dashoffset: -24; } }
@keyframes ops-ping       { 0% { transform: scale(.4); opacity:.9; } 70% { opacity:.25; } 100% { transform: scale(3.6); opacity:0; } }
@keyframes ops-core       { 0%,100% { opacity:.95; } 50% { opacity:.45; } }
@keyframes ops-sweep      { to { transform: rotate(360deg); } }

/* ── Grundlayout + Command-Palette ──────────────────────────────────────────── */
/* Die Design-Token aus usms-theme.css werden hier – nur für Login/Ladescreens –
   auf die Dashboard-Palette umgebogen: „Gold"-Token tragen den Stahlblau-Akzent,
   echtes Gold gibt es gezielt über --usms-gold. */
body.login-body {
  --bg-base: #04070c;
  --panel: linear-gradient(165deg, rgba(17,23,33,.92), rgba(9,13,20,.95));
  --panel-soft: rgba(13,18,27,.72);
  --line: rgba(139,165,199,.14);
  --line-strong: #2b3749;
  --gold: #5f88b5;
  --gold-light: #9dbede;
  --gold-deep: #38597e;
  --cream: #e9eef5;
  --muted: #93a1b4;
  --muted-2: #5d6b7e;
  --usms-gold: #c9a24b;
  --usms-gold-light: #e7c87e;
  --usms-blue: #4f7cac;
  --usms-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-base);
  color: var(--cream);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Animierte Einsatzkarte (Include usms_login_bg.html) ────────────────────── */
.login-map {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(130% 110% at 50% 30%, #0c1626 0%, #070d18 48%, #03060b 100%);
}
.map-drift { position: absolute; inset: 0; transform-origin: 50% 45%;
  animation: ops-drift 48s ease-in-out infinite alternate; will-change: transform; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Kartenebenen */
.map-water { fill: rgba(64,110,165,.09); }
.map-park  { fill: rgba(85,178,106,.05); stroke: rgba(85,178,106,.09); }
.map-blocks rect { fill: rgba(139,165,199,.035); stroke: rgba(139,165,199,.055); }
.map-roads-minor path { stroke: rgba(139,165,199,.08); stroke-width: 1; fill: none; }
.map-roads-main path  { stroke: rgba(157,190,222,.15); stroke-width: 2; fill: none; }
.map-hwy { stroke: rgba(157,190,222,.22); stroke-width: 3.5; fill: none; stroke-linecap: round; }
.map-sector { fill: none; stroke: rgba(201,162,75,.10); stroke-width: 1; stroke-dasharray: 5 9; }
.map-corner path { fill: none; stroke: rgba(201,162,75,.38); stroke-width: 2.5; stroke-linecap: square; }

/* Zugriffs-Route: wandernde Gold-Striche (Datenfluss HQ → Einsatzort) */
.map-route { fill: none; stroke: rgba(201,162,75,.55); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 10 14; animation: ops-dash 1.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(201,162,75,.45)); }
.map-hq rect { fill: rgba(201,162,75,.5); stroke: rgba(231,200,126,.6); }
.map-hq text, .map-target-lbl, .map-lbls text { font-family: var(--usms-mono, Consolas, monospace); letter-spacing: 3px; }
.map-hq text { font-size: 13px; fill: rgba(231,200,126,.5); }
.map-target-lbl { font-size: 13px; fill: rgba(231,200,126,.48); }
.map-lbls text { font-size: 12px; fill: rgba(157,190,222,.30); }
.map-cross path { stroke: rgba(157,190,222,.16); stroke-width: 1.5; }

/* Einsatz-Pings */
.map-ping .ping-core { fill: #c9a24b; animation: ops-core 2.6s ease-in-out infinite; }
.map-ping .ping-w1, .map-ping .ping-w2 { fill: none; stroke: rgba(201,162,75,.55); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center; animation: ops-ping 3.4s ease-out infinite; }
.map-ping .ping-w2 { animation-delay: 1.7s; }
.map-ping.ping-blue .ping-core { fill: #9dbede; }
.map-ping.ping-blue .ping-w1, .map-ping.ping-blue .ping-w2 { stroke: rgba(157,190,222,.5); }
.map-ping.ping-big .ping-w1, .map-ping.ping-big .ping-w2 { stroke-width: 2; }

/* Streifen-Einheiten (SMIL-animiert im SVG) */
.map-units .unit { fill: #9dbede; filter: drop-shadow(0 0 5px rgba(157,190,222,.9)); }
.map-units .unit-gold { fill: #e0bd6a; filter: drop-shadow(0 0 6px rgba(224,189,106,.9)); }

/* Overlays: Raster, Radar-Sweep, Korn, Vignette */
.map-grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,165,199,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,165,199,.05) 1px, transparent 1px),
    linear-gradient(rgba(139,165,199,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,165,199,.07) 1px, transparent 1px);
  background-size: 90px 90px, 90px 90px, 270px 270px, 270px 270px; }
.map-sweep { position: absolute; inset: -35%;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(157,190,222,.10) 0deg, rgba(157,190,222,.02) 34deg, transparent 70deg);
  animation: ops-sweep 17s linear infinite;
  -webkit-mask: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 78%);
  mask: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 78%); }
.map-grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; }
.map-vignette { position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 42%, transparent 46%, rgba(0,0,0,.68) 100%); }

/* ── Panel / Karte ──────────────────────────────────────────────────────────── */
.login-panel {
  position: relative; z-index: 1; width: 100%; max-width: 468px;
  background: linear-gradient(165deg, rgba(16,22,32,.88), rgba(8,12,19,.93));
  border-radius: 18px; border: 1px solid rgba(139,165,199,.18); border-top: 2px solid var(--usms-gold);
  padding: 34px 38px 30px; text-align: center; overflow: hidden;
  box-shadow: 0 34px 80px -30px rgba(0,0,0,.95), 0 0 60px -30px rgba(79,124,172,.45),
    inset 0 1px 0 rgba(157,190,222,.08);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
}
/* Wandernder Glanz auf der Goldkante */
.login-panel::before { content: ""; position: absolute; top: 0; left: 0; width: 44%; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(240,214,150,.85), transparent);
  animation: ls-glint 6.5s ease-in-out infinite; }
/* Innere Hairline (taktischer Doppelrahmen) */
.login-panel::after { content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(139,165,199,.08); border-radius: 12px; }

/* Das Marshal-Stern-Siegel (.usms-seal) ist global in static/usms-theme.css
   definiert (Gold/Braun). Auf den Login-/Ladescreens wird es hier auf den
   Command-Look umgefärbt: Navy-Scheibe, Stahlblau-Ringe – der Stern bleibt Gold. */
.login-body .usms-seal .seal-disc {
  background: radial-gradient(circle at 50% 30%, #16233a, #070d18 72%);
  border: 3px solid rgba(157,190,222,.6);
  box-shadow: 0 8px 26px rgba(31,58,94,.55), 0 0 26px rgba(79,124,172,.35),
    inset 0 2px 4px rgba(255,255,255,.16);
}
.login-body .usms-seal .seal-ring1 { border: 2px solid rgba(157,190,222,.34); }
.login-body .usms-seal .seal-ring2 { border: 1px solid rgba(201,162,75,.30); }
.login-body .usms-seal .seal-glow {
  background: radial-gradient(circle, rgba(201,162,75,.22), rgba(79,124,172,.14) 46%, rgba(0,0,0,0) 66%);
}
.login-body .usms-seal .seal-star {
  background: linear-gradient(150deg, #f6e3a6, #c9a24b 52%, #8a6420);
}
/* Auf den Login-Seiten (Siegel direkt im Panel) bekommt das Siegel denselben
   gestrichelten Peilring wie der Ladescreen. Der Ladescreen selbst bringt den
   Ring über .ls-sealwrap mit – dort greift dieser Selektor nicht. */
.login-panel > .usms-seal { margin: 12px auto 18px; }
.login-panel > .usms-seal::after { content: ""; position: absolute; inset: -13px; border-radius: 50%;
  border: 1px dashed rgba(157,190,222,.28); animation: ls-spin 26s linear infinite; }

/* ── Kopf (Titel / Tagline) ─────────────────────────────────────────────────── */
.login-panel h1 { font-size: 17px; color: var(--cream); margin: 14px 0 6px; letter-spacing: 2.4px;
  text-transform: uppercase; line-height: 1.45; font-weight: 700; }
.login-tagline { font-size: 11px; color: var(--usms-gold); letter-spacing: 3.4px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 22px; }
.login-sub { font-size: 14px; color: var(--muted); margin-bottom: 8px; }

/* ── Fehler / Fußnote ───────────────────────────────────────────────────────── */
.login-error { background: rgba(224,88,79,.12); border: 1px solid rgba(224,90,82,.55); border-left: 3px solid var(--danger);
  border-radius: 9px; color: #f0b1ab; padding: 12px 16px; font-size: 13px; margin-bottom: 22px;
  text-align: left; line-height: 1.5; }
.login-foot { font-size: 11.5px; color: var(--muted-2); margin-top: 20px; line-height: 1.5;
  border-top: 1px solid rgba(139,165,199,.12); padding-top: 14px; }

/* ── Discord-Login-Button ───────────────────────────────────────────────────── */
.login-discord-btn { display: inline-flex; align-items: center; gap: 12px; width: 100%; justify-content: center;
  background: linear-gradient(180deg, #3f6c9f, #2d5077); color: #eef4fb; text-decoration: none;
  padding: 14px 26px; border: 1px solid rgba(157,190,222,.35); border-radius: 10px;
  font-size: 15.5px; font-weight: 600; letter-spacing: .3px;
  box-shadow: 0 12px 26px -14px rgba(47,84,124,.95), inset 0 1px 0 rgba(255,255,255,.14);
  transition: filter .16s ease, transform .16s ease, border-color .16s ease; }
.login-discord-btn:hover { filter: brightness(1.12); transform: translateY(-1px);
  border-color: rgba(201,162,75,.55); }
.login-discord-btn svg { fill: currentColor; flex-shrink: 0; }

/* ── Auswahl-Buttons (Auswahlseite) ─────────────────────────────────────────── */
.login-choices { display: flex; flex-direction: column; gap: 14px; }
.login-choice { display: flex; align-items: center; gap: 16px; text-align: left; text-decoration: none;
  background: rgba(9,14,21,.62); color: #c6d3e2;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease; }
.login-choice:hover { border-color: rgba(201,162,75,.55);
  background: linear-gradient(180deg, #3f6c9f, #2d5077); color: #eef4fb; transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(47,84,124,.9); }
.login-choice .ico { flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.login-choice .ico svg { fill: currentColor; }
.login-choice .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.login-choice .txt b { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.login-choice .txt span { font-size: 12.5px; opacity: .82; line-height: 1.35; }
.login-choice .arrow { margin-left: auto; flex-shrink: 0; opacity: .55; transition: .15s; }
.login-choice:hover .arrow { opacity: 1; transform: translateX(3px); }

/* ── Ladescreen: Siegel mit Radar-Orbit ─────────────────────────────────────── */
.ls-sealwrap { position: relative; width: 152px; height: 152px; margin: 0 auto;
  display: grid; place-items: center; }
.ls-sealwrap .usms-seal { margin: 0; }
/* gestrichelter Peilring (dreht langsam) */
.ls-orbit-track { position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(157,190,222,.28); animation: ls-spin 26s linear infinite; }
/* Scan-Segment (dreht schnell): Stahlblau mit Gold-Spitze */
.ls-orbit { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(157,190,222,.9) 88%, #e7c87e 100%);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 3.5px), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 3.5px), #000 0);
  animation: ls-spin 1.6s linear infinite; }
/* Abschluss: Orbit wird zum stehenden Gold-Ring, Haken-Badge poppt am Siegel */
.ls-sealwrap.done .ls-orbit { display: none; }
.ls-sealwrap.done .ls-orbit-track { animation: none; border: 2px solid rgba(201,162,75,.6);
  box-shadow: 0 0 28px rgba(201,162,75,.35), inset 0 0 18px rgba(201,162,75,.14); }
.ls-sealcheck { position: absolute; right: 4px; bottom: 4px; width: 36px; height: 36px; border-radius: 50%;
  background: #10251a; border: 2px solid var(--ok); display: none; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(85,178,106,.5); z-index: 2; }
.ls-sealwrap.done .ls-sealcheck { display: flex; animation: ls-pop .4s cubic-bezier(.3,1.6,.4,1) both; }
.ls-sealcheck i { width: 13px; height: 7px; border-left: 2.5px solid #7fd694; border-bottom: 2.5px solid #7fd694;
  transform: rotate(-45deg); margin-top: -3px; display: block; }

/* ── Ladescreen: Status-Badge / Texte / Schritte / Ladebalken ───────────────── */
.ls-stack { border-top: 1px solid rgba(139,165,199,.14); padding-top: 22px; margin-top: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; }

.ls-conn { display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--usms-mono); font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid rgba(139,165,199,.24); background: rgba(79,124,172,.10);
  border-radius: 999px; padding: 6px 14px; }
.ls-conn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--usms-gold);
  box-shadow: 0 0 8px rgba(201,162,75,.8); animation: ls-pulseDot 1.3s ease infinite; flex-shrink: 0; }
.ls-conn.ok .dot { background: var(--ok); box-shadow: 0 0 8px rgba(85,178,106,.8); animation: none; }
.ls-conn.gold { border-color: rgba(201,162,75,.4); color: var(--usms-gold-light); background: rgba(201,162,75,.08); }
/* Status-Badge direkt im Panel (Login-Seiten): zwischen Tagline und Buttons */
.login-panel > .ls-conn { margin: -6px 0 22px; }

.ls-texts { min-height: 44px; }
.ls-texts .main { font-size: 16.5px; font-weight: 600; color: var(--cream); letter-spacing: .2px; }
.ls-texts .sub { font-size: 12.5px; color: var(--muted); font-family: var(--usms-mono);
  margin-top: 6px; letter-spacing: .4px; }

.ls-steps { width: 100%; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.ls-step { display: flex; align-items: center; gap: 11px; padding: 8px 12px;
  border: 1px solid rgba(139,165,199,.10); border-radius: 9px; background: rgba(9,14,21,.55);
  transition: border-color .25s ease, background .25s ease; }
.ls-step .ic { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.ls-step .tx { flex: 1; font-size: 13px; color: var(--muted-2); transition: color .25s ease; }
.ls-step .st { font-family: var(--usms-mono); font-size: 9.5px; letter-spacing: 1.6px; }
/* wartet */
.ls-step .ic::before { content: ""; position: absolute; inset: 3px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); }
.ls-step .st::after { content: "WARTET"; color: #4b5a70; }
/* läuft */
.ls-step.is-active { border-color: rgba(157,190,222,.30); background: rgba(79,124,172,.10); }
.ls-step.is-active .tx { color: var(--cream); }
.ls-step.is-active .ic::before { inset: 0; border: none;
  background: conic-gradient(from 90deg, transparent 14%, var(--gold-light));
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 2.5px), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 2.5px), #000 0);
  animation: ls-spin 1s linear infinite; }
.ls-step.is-active .st::after { content: "AKTIV"; color: var(--gold-light); }
/* fertig */
.ls-step.is-done .ic::before { inset: 0; border: 1.5px solid var(--ok);
  background: rgba(85,178,106,.12); animation: none; }
.ls-step.is-done .ic::after { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 4px;
  border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: rotate(-45deg); }
.ls-step.is-done .tx { color: var(--muted); }
.ls-step.is-done .st::after { content: "OK"; color: #6fbf82; }

.ls-progress { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.ls-bar { position: relative; height: 7px; border-radius: 7px; background: rgba(7,11,17,.9);
  border: 1px solid var(--line-strong); overflow: hidden; }
.ls-bar .fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 7px; width: 0;
  background: linear-gradient(90deg, #38597e, #5f88b5 46%, #9dbede 72%, #c9a24b);
  box-shadow: 0 0 14px rgba(95,136,181,.65); transition: width .18s ease; }
.ls-bar .shine { position: absolute; top: 0; bottom: 0; left: 0; width: 64px;
  background: linear-gradient(90deg, transparent, rgba(230,240,252,.5), transparent);
  animation: ls-shimmer 1.6s linear infinite; }
.ls-meta { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--muted-2); font-family: var(--usms-mono); }
.ls-meta .pct { color: var(--usms-gold-light); font-weight: 700; letter-spacing: 1px; }

/* ── Formular-Login (Personalakten) ─────────────────────────────────────────── */
/* Feld-Grundstyling kommt aus usms-theme.css (.field) und folgt hier automatisch
   der Command-Palette; das Panel zentriert Text, die Felder sollen links stehen. */
.login-form { text-align: left; margin-top: 2px; }
.login-form .ls-btn-primary { margin-top: 6px; }
.login-form .field input { background: rgba(8,12,19,.85); }
.login-form .field input:focus { background: rgba(10,15,23,.95); }

/* ── Wartungs-Screen ────────────────────────────────────────────────────────── */
.wartung-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light);
  background: rgba(79,124,172,.10); border: 1px solid rgba(139,165,199,.24); border-radius: 999px;
  padding: 5px 14px; margin: 12px 0 14px; font-family: var(--usms-mono); }
.wartung-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 8px var(--danger); animation: ls-wartungPulse 1.6s ease-in-out infinite; }
.wartung-msg { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; white-space: pre-wrap; }
.wartung-timer-wrap { text-align: center; margin-bottom: 18px; }
.wartung-timer { font-size: 24px; font-weight: 600; color: var(--cream); font-family: var(--usms-mono); letter-spacing: 2px; }
.wartung-timer-label { font-size: 11px; color: var(--muted-2); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

.livefeed { border-top: 1px solid rgba(139,165,199,.14); padding-top: 16px; text-align: left; }
.livefeed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.livefeed-head .label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); font-family: var(--usms-mono); }
.livefeed-head .label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok); animation: ls-pulseDot 1.4s ease infinite; }
.livefeed-head .auto { font-size: 10.5px; color: var(--muted-2); font-family: var(--usms-mono); }
.livefeed-rows { display: flex; flex-direction: column; gap: 7px; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 9px 13px; border: 1px solid rgba(139,165,199,.12);
  border-radius: 10px; background: rgba(9,14,21,.5); animation: ls-rowIn .35s ease both; }
.feed-row .ficon { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feed-row .ftext { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.feed-row .fbadge { font-size: 10.5px; font-family: var(--usms-mono); letter-spacing: .05em; white-space: nowrap; }
.feed-row .ftime { display: block; font-size: 10.5px; color: var(--muted-2); font-family: var(--usms-mono); margin-top: 2px; }
/* Icon: fertig */
.feed-ico-done { width: 22px; height: 22px; border-radius: 50%; background: rgba(85,178,106,.14);
  border: 1.5px solid var(--ok); display: flex; align-items: center; justify-content: center; }
.feed-ico-done i { width: 8px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg); margin-top: -2px; display: block; }
/* Icon: läuft */
.feed-ico-active { position: relative; width: 22px; height: 22px; }
.feed-ico-active i { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 12%, var(--gold-light));
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 0); animation: ls-spin 1s linear infinite; display: block; }
/* Icon: ausstehend */
.feed-ico-pending { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.feed-row.is-done .ftext { color: var(--muted); }
.feed-row.is-active .ftext { color: var(--cream); }
.feed-row.is-pending .ftext { color: var(--muted-2); }
.feed-row.is-done .fbadge { color: #6fbf82; }
.feed-row.is-active .fbadge { color: var(--gold-light); }
.feed-row.is-pending .fbadge { color: #4b5a70; }
.livefeed-empty { font-size: 12.5px; color: var(--muted-2); text-align: center; padding: 14px 0; font-family: var(--usms-mono); }
.livefeed-bar { margin-top: 16px; height: 5px; border-radius: 5px; background: rgba(7,11,17,.9); border: 1px solid var(--line-strong); overflow: hidden; }
.livefeed-bar .fill { height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #38597e, #5f88b5 55%, #c9a24b);
  box-shadow: 0 0 10px rgba(95,136,181,.55); transition: width .5s ease; }

/* ── Wartungs-Buttons ───────────────────────────────────────────────────────── */
.wartung-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ls-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: linear-gradient(180deg, #3f6c9f, #2d5077); color: #eef4fb; text-decoration: none;
  border: 1px solid rgba(157,190,222,.35); border-radius: 10px; padding: 14px 22px;
  font-size: 15px; font-weight: 700; letter-spacing: .3px; cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(47,84,124,.95), inset 0 1px 0 rgba(255,255,255,.14);
  transition: filter .15s, transform .15s, border-color .15s; }
.ls-btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); border-color: rgba(201,162,75,.55); }
.ls-btn-secondary { width: 100%; background: none; border: 1px solid var(--line-strong); color: var(--cream);
  border-radius: 10px; padding: 11px 22px; font-size: 13.5px; cursor: pointer; transition: .15s; }
.ls-btn-secondary:hover { border-color: var(--usms-blue); color: var(--gold-light); background: rgba(79,124,172,.1); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .login-panel { padding: 28px 22px 26px; }
  .usms-seal { width: 104px; height: 104px; }
  .usms-seal .seal-star { width: 52px; height: 52px; }
  .ls-sealwrap { width: 128px; height: 128px; }
}
/* Niedrige Fenster: Ladescreen kompakter, damit alles ohne Scrollen passt */
@media (max-height: 780px) {
  .login-panel { padding: 26px 34px 24px; }
  .login-panel h1 { font-size: 15.5px; margin-top: 10px; }
  .login-tagline { margin-bottom: 16px; }
  .ls-sealwrap { width: 124px; height: 124px; }
  .ls-sealwrap .usms-seal { width: 100px; height: 100px; }
  .ls-sealwrap .usms-seal .seal-star { width: 50px; height: 50px; }
  .ls-stack { padding-top: 16px; margin-top: 16px; gap: 12px; }
  .ls-step { padding: 6px 11px; }
  .ls-texts { min-height: 40px; }
  .login-foot { margin-top: 14px; }
}

/* ── Reduced Motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .map-drift, .map-route, .map-ping .ping-core, .map-ping .ping-w1, .map-ping .ping-w2,
  .map-sweep, .login-panel::before, .ls-orbit, .ls-orbit-track, .ls-sealcheck,
  .login-panel > .usms-seal::after,
  .ls-conn .dot, .ls-step.is-active .ic::before, .ls-bar .shine,
  .feed-ico-active i, .wartung-pill .dot, .livefeed-head .label .dot { animation: none; }
  .map-units { display: none; }
}
