/* ================================================================================================
   ANMELDE-SEITEN: Hintergrund mit Marken-Verlauf, Farbflächen und Linien-Symbolen (3.539.717)

   ANLASS (Pascal, zur Seite „Kurz bestätigen“): „Loginseite so nackig … wäre auch gut so Hintergrund-Symbole usw. haben,
   also ein richtig schöner moderner Hintergrund mit Icons usw.“

   Geladen von login.php, reset.php, verify.php, zweitbestaetigung.php und shop-autologin.php, jeweils NACH ihren eigenen
   Stilen. Das HTML kommt aus anmeldeDeko() in partials/deko.php (dieselben Symbole wie die Startseite) und steht als erstes
   im <body>. Die Ebene liegt fest hinter allem (z-index -1, über dem Seitengrund), fängt keine Klicks ab, ist für
   Bildschirmleser unsichtbar (aria-hidden) und verschiebt nichts: kein Layout-Sprung, keine Scrollleiste.
   Ohne Angabe gilt Dunkel (wie design.css und login.php), body[data-theme="light"] ist Hell.
   ================================================================================================ */
.an-deko { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: layout paint;
  background: linear-gradient(155deg, #0D2729 0%, #0A1B1D 46%, #0E2B2D 100%); }
body[data-theme="light"] .an-deko { background: linear-gradient(155deg, #E6F5F3 0%, #F3F8F8 46%, #E4F1F0 100%); }

/* Drei grosse, weiche Farbflächen in Akzent und Herz. Sie wandern sehr langsam (30 bis 44 s). */
.an-deko-flaechen { position: absolute; inset: 0; }
.an-deko-flaeche { position: absolute; border-radius: 50%; animation: anDekoFlaeche 32s ease-in-out infinite alternate; }
.an-deko-f1 { width: 64vmax; height: 64vmax; left: -22vmax; top: -26vmax; background: radial-gradient(closest-side, rgba(61,191,179,.26), rgba(61,191,179,0)); }
.an-deko-f2 { width: 58vmax; height: 58vmax; right: -20vmax; bottom: -24vmax; background: radial-gradient(closest-side, rgba(28,140,131,.34), rgba(28,140,131,0)); animation-duration: 38s; animation-delay: -12s; }
.an-deko-f3 { width: 40vmax; height: 40vmax; right: 4vw; top: -14vmax; background: radial-gradient(closest-side, rgba(61,191,179,.14), rgba(61,191,179,0)); animation-duration: 44s; animation-delay: -20s; }
body[data-theme="light"] .an-deko-f1 { background: radial-gradient(closest-side, rgba(61,191,179,.34), rgba(61,191,179,0)); }
body[data-theme="light"] .an-deko-f2 { background: radial-gradient(closest-side, rgba(28,140,131,.22), rgba(28,140,131,0)); }
body[data-theme="light"] .an-deko-f3 { background: radial-gradient(closest-side, rgba(143,220,212,.40), rgba(143,220,212,0)); }
/* Ein ruhiger Lichthof hinter der Mitte: dort steht Text ausserhalb der Karte (Unterzeile, Links, Rechtliches). Er hält
   dessen Kontrast so gut wie vorher auf dem schlichten Grund (AA), die Farbe sitzt an den Rändern. */
.an-deko-flaechen::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw); height: 130vh;
  transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(10,27,29,.6), rgba(10,27,29,0)); }
body[data-theme="light"] .an-deko-flaechen::after { background: radial-gradient(closest-side, rgba(248,251,251,.94) 40%, rgba(248,251,251,0)); }
@keyframes anDekoFlaeche {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4vmax, 3vmax) scale(1.08); }
}

/* Die Symbole: Linien in Türkis, leise; sie treiben langsam wie auf der Startseite (lpDekoBahn in landing.css). */
.an-deko-sym { position: absolute; width: var(--g); height: var(--g); color: #3DBFB3; opacity: .22;
  transform: translate(-50%, -50%) rotate(var(--r)); animation: anDekoBahnA var(--d, 20s) ease-in-out var(--v) infinite; }
.an-deko-sym:nth-of-type(even) { color: #8FDCD4; opacity: .14; }
.an-deko-sym:nth-of-type(3n+2) { animation-name: anDekoBahnB; }
.an-deko-sym:nth-of-type(3n) { animation-name: anDekoBahnC; }
.an-deko-sym svg { width: 100%; height: 100%; display: block; }
body[data-theme="light"] .an-deko-sym { color: #1C8C83; opacity: .30; }
body[data-theme="light"] .an-deko-sym:nth-of-type(even) { color: #3DBFB3; opacity: .42; }
@keyframes anDekoBahnA {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--r)); }
  25% { transform: translate(calc(-50% + 18px), calc(-50% - 22px)) rotate(calc(var(--r) + 8deg)); }
  50% { transform: translate(calc(-50% + 30px), calc(-50% + 4px)) rotate(calc(var(--r) + 2deg)); }
  75% { transform: translate(calc(-50% + 8px), calc(-50% + 20px)) rotate(calc(var(--r) - 6deg)); }
}
@keyframes anDekoBahnB {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--r)); }
  33% { transform: translate(calc(-50% - 24px), calc(-50% + 14px)) rotate(calc(var(--r) - 9deg)); }
  66% { transform: translate(calc(-50% - 6px), calc(-50% - 26px)) rotate(calc(var(--r) + 5deg)); }
}
@keyframes anDekoBahnC {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
  50% { transform: translate(calc(-50% + 12px), calc(-50% - 30px)) rotate(calc(var(--r) + 12deg)) scale(1.08); }
}

/* Die Karte hebt sich als leicht durchscheinendes Glas ab. Schrift und Kontrast bleiben wie vorher: der Grund der Karte ist
   fast deckend (92 %), das Durchscheinende ist nur ein weicher Schimmer der Farbflächen. Nur wo die Ebene da ist (~). */
.an-deko ~ .box .card { background: rgba(16,38,42,.92); border-color: rgba(143,220,212,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 6px rgba(0,0,0,.18), 0 30px 70px -24px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
body[data-theme="light"] .an-deko ~ .box .card { background: rgba(255,255,255,.92); border-color: rgba(14,43,45,.08);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(14,43,45,.05), 0 30px 64px -24px rgba(14,43,45,.32); }

/* Am Handy nur die Symbole ohne „h“, kleiner und leiser an den Rändern; der Text bleibt frei und gut lesbar. */
@media (max-width: 760px) {
  .an-deko-gross { display: none; }
  .an-deko-sym { width: calc(var(--g) * .62); height: calc(var(--g) * .62); }
  .an-deko-sym, .an-deko-sym:nth-of-type(even) { opacity: .16; }
  body[data-theme="light"] .an-deko-sym, body[data-theme="light"] .an-deko-sym:nth-of-type(even) { opacity: .26; }
}
/* Weniger Bewegung: alles steht still. Spezifischer als die :nth-of-type-Bahnen oben, sonst liefen zwei Drittel weiter. */
@media (prefers-reduced-motion: reduce) { .an-deko .an-deko-sym:nth-of-type(n), .an-deko .an-deko-flaeche { animation: none; } }
@media print { .an-deko { display: none; } }
