/* ZMK-OS: Anmeldefenster im Praxis-CI (Navy #1B263B, Bronze #8E7355, Sand #D6CFC7)
   Eingebunden über zmk-authelia-ci (nginx sub_filter). Entfernen: Caddy /authelia* wieder direkt auf zmk-authelia:9091.
   Gestaltung 27.09.2026 (Agent gestaltung): Glas-Rand, Federbewegung, Druckzustand, Fokusring, Kontrast Knopf, reduced-motion. */
@import url("/authelia-ci/dmsans.css");

:root { --zmk-navy:#1B263B; --zmk-bronze:#8E7355; --zmk-bronze-d:#76603f; --zmk-sand:#D6CFC7; --zmk-ease:cubic-bezier(.2,.8,.2,1); }

html { background:#1B263B; }
body { background:transparent !important; font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif !important; -webkit-font-smoothing:antialiased; }
body::before { content:""; position:fixed; inset:-40px; z-index:-2; background:url("/authelia-ci/bg.svg") center/cover no-repeat; filter:blur(24px) saturate(115%); animation:zmkdrift 26s ease-in-out infinite alternate; }
body::after  { content:""; position:fixed; inset:0; z-index:-1; background:radial-gradient(60% 50% at 50% 40%, rgba(27,38,59,.22), rgba(27,38,59,.48)); }
@keyframes zmkdrift { from { transform:translate3d(0,0,0) scale(1); } to { transform:translate3d(-20px,14px,0) scale(1.04); } }
#root, #root * { font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif !important; }

/* Kopfzeile (auf der 2. Stufe mit Benutzername/Abmelden) */
#root header.MuiAppBar-root { position:fixed; top:0; left:0; right:0; background:rgba(27,38,59,.55) !important; -webkit-backdrop-filter:blur(20px) saturate(160%); backdrop-filter:blur(20px) saturate(160%); box-shadow:none !important; color:#fff !important; z-index:5; }
#root header.MuiAppBar-root * { color:#fff !important; }

/* Seite mittig */
#root [id$="-stage"], #root .MuiBox-root > .MuiGrid2-container { min-height:100vh !important; display:flex !important; align-items:center !important; justify-content:center !important; padding:24px 16px; }

/* Popup-Karte: weiß (Primärlogo steht auf Weiß), mit Glas-Rand */
#root .MuiContainer-maxWidthXs {
  position:relative; background:#fff; border-radius:10px; max-width:420px !important;
  padding:34px 32px 26px !important;
  box-shadow:0 0 0 8px rgba(255,255,255,.12), 0 0 0 9px rgba(255,255,255,.20), 0 30px 80px rgba(10,16,28,.38), 0 2px 6px rgba(10,16,28,.15);
  animation:zmkpop .42s var(--zmk-ease) both;
}
@keyframes zmkpop { from { opacity:0; transform:translateY(24px) scale(.98); } to { opacity:1; transform:none; } }
#root .MuiContainer-maxWidthXs::before {
  /* Originallogo (Primärlogo quadratisch, Quelle: "ZMK Logo mit weißem Hintergrund 500x500.png"), nur skaliert */
  content:""; display:block; width:112px; height:112px; margin:0 auto 4px;
  background:url("/authelia-ci/zmk-logo-primaer.webp") center/contain no-repeat;
}
#root .MuiContainer-maxWidthXs::after {
  content:"ZMK-OS · Praxis im Technologiepark"; display:block; margin-top:14px; font-size:12px; color:#5d6b7a; text-align:center;
}
#root #UserSvg { display:none !important; }
#root .MuiTypography-h5 { color:var(--zmk-navy) !important; font-weight:700 !important; font-size:23px !important; letter-spacing:-.01em; margin-bottom:6px; }

/* Eingabefelder */
#root .MuiOutlinedInput-root { border-radius:6px !important; transition:box-shadow .28s var(--zmk-ease); }
#root .MuiOutlinedInput-root.Mui-focused { box-shadow:0 0 0 4px rgba(27,38,59,.12); }
#root .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline { border-color:var(--zmk-navy) !important; border-width:2px !important; }
#root .MuiInputLabel-root.Mui-focused { color:var(--zmk-navy) !important; }

/* Schaltflächen (Kontrast Weiß auf Bronze-dunkel ≥ 4,9:1) */
#root .MuiButton-containedPrimary, #root .MuiButton-contained {
  background-color:#1B263B !important; background-image:none !important; color:#fff !important; border-radius:6px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px rgba(118,96,63,.28) !important;
  text-transform:none !important; font-weight:600 !important; font-size:15px !important; padding:11px 16px !important; min-height:46px;
  transition:transform .12s var(--zmk-ease), box-shadow .28s var(--zmk-ease) !important;
}
#root .MuiButton-containedPrimary:hover, #root .MuiButton-contained:hover { background-image:none !important; background-color:#2B3D5E !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(118,96,63,.34) !important; }
#root .MuiButton-root:active { transform:scale(.97); }
#root .MuiButton-root.Mui-focusVisible, #root .MuiButton-root:focus-visible { box-shadow:0 0 0 3px rgba(142,115,85,.55) !important; }
#root .MuiButton-text, #root .MuiButton-outlined { color:var(--zmk-navy) !important; text-transform:none !important; border-radius:6px !important; }

/* Häkchen, Links, Code-Eingabe */
#root .MuiCheckbox-root.Mui-checked, #root .Mui-checked { color:var(--zmk-navy) !important; }
#root a, #root .MuiLink-root { color:var(--zmk-navy) !important; text-decoration-color:var(--zmk-bronze) !important; }
#root input[autocomplete="one-time-code"], #root .otp-input input { border-radius:6px !important; }
#root .MuiCircularProgress-root { color:var(--zmk-bronze) !important; }
#root .MuiTabs-indicator { background:var(--zmk-bronze) !important; }
#root .MuiTab-root.Mui-selected { color:var(--zmk-navy) !important; }

@media (max-width:480px) {
  #root .MuiContainer-maxWidthXs { padding:28px 20px 20px !important; border-radius:10px; }
}

/* Hinweis "Betrieben mit Authelia" klein und einzeilig */
#root a[href*="authelia.com"] { color:#9aa3ad !important; font-size:11px !important; white-space:nowrap; }
#root a[href*="authelia.com"] * { color:#9aa3ad !important; }
#root p:has(> a[href*="authelia.com"]), #root div:has(> a[href*="authelia.com"]) { white-space:nowrap; }

@media (prefers-reduced-motion:reduce) {
  body::before, #root .MuiContainer-maxWidthXs { animation:none !important; }
  #root .MuiButton-root { transition:none !important; }
  #root .MuiButton-root:active { transform:none; }
}
