/* Alpasana · Design «Zukunft» für Anmeldeseiten (29.09.2026)
 *
 * Weltraum-Stil wie modernhosting.ch, das Power-Panel-Login und absofort.ch:
 * Sternenhimmel mit bewegtem Punktenetz (zukunft-login.js), Glas-Karte
 * «Mission Control» mit Andock-Rahmen, kleine Rakete, Verlauf Violett-Cyan-Mint.
 *
 * Nur für Anmeldeseiten, bewusst eigenständig (kein Bezug auf Klassen der
 * jeweiligen Website). Immer dunkel. Schriften lokal (OFL): Rajdhani, Inter,
 * JetBrains Mono. Alle Dekoration ist aria-hidden und ohne Wörter.
 * Bewegung nur mit html.zl-motion (setzt zukunft-login.js, zusammen mit dem
 * Pause-Knopf); «Bewegung reduzieren» und Pause lassen alles stillstehen. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/rajdhani-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --zl-violet: #a492ff;
  --zl-indigo: #6550db;
  --zl-cyan: #69e1f5;
  --zl-mint: #9af5d4;
  --zl-grad: linear-gradient(105deg, var(--zl-violet), var(--zl-cyan) 65%, var(--zl-mint));
  --zl-ink: #04070e;
  --zl-bg: #070a13;
  --zl-text: #eef3ff;
  --zl-lead: #c3cde0;
  --zl-muted: #a6b2ca;
  --zl-line: rgba(255, 255, 255, .1);
  --zl-field: rgba(4, 7, 14, .6);
  --zl-field-border: #6b7a99;
  --zl-focus: #69e1f5;
  --zl-err: #ffb4bf;
  --zl-hull-dark: #526584;
  --zl-hull-mid: #b6c8dc;
  --zl-hull-light: #eff8ff;
  --zl-window: #102d4d;
  --zl-edge: 200deg;
  --zl-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --zl-title: 'Rajdhani', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --zl-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--zl-bg); }
body.zl {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--zl-bg);
  color: var(--zl-text);
  font: 16px/1.6 var(--zl-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================== Himmel ============================== */
.zl-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--zl-bg);
  background-image:
    radial-gradient(ellipse 58% 78% at 84% 8%, rgba(52, 44, 130, .55), transparent 62%),
    radial-gradient(ellipse 46% 60% at 4% 100%, rgba(71, 206, 235, .10), transparent 66%);
}
/* Sterne als CSS-Rückfall ohne JavaScript; das Canvas übernimmt, sobald es läuft. */
.zl-sky::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 23px 41px, rgba(214, 226, 255, .55) 60%, transparent 62%),
    radial-gradient(1px 1px at 131px 97px, rgba(214, 226, 255, .55) 60%, transparent 62%),
    radial-gradient(1.6px 1.6px at 77px 173px, rgba(105, 225, 245, .45) 60%, transparent 62%),
    radial-gradient(1px 1px at 190px 22px, rgba(214, 226, 255, .55) 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 59px 121px, rgba(214, 226, 255, .55) 60%, transparent 62%);
  background-size: 211px 197px, 283px 251px, 331px 307px, 241px 263px, 173px 149px;
  opacity: .75;
  transition: opacity .6s;
}
.zl-sky.zl-live::before { opacity: 0; }
/* Feine Rasterlinien und leuchtende Kante unten, wie bei modernhosting */
.zl-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, var(--zl-violet) 22%, var(--zl-cyan) 55%, var(--zl-mint) 78%, transparent) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(7, 10, 19, .55) 3px 4px);
  opacity: .42;
}
.zl-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zl-planet {
  position: absolute;
  left: -30vw;
  top: calc(100% - 96px);
  width: 160vw;
  height: 160vw;
  border-radius: 50%;
  border-top: 1px solid rgba(154, 245, 212, .55);
  background: radial-gradient(circle at 50% 0, rgba(105, 225, 245, .18), rgba(26, 36, 72, .85) 4%, #04070e 12%);
  box-shadow: 0 -30px 90px -20px rgba(105, 225, 245, .22);
}

/* ============================== Seitengerüst ============================== */
.zl-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.zl-header { padding: 22px clamp(16px, 4vw, 40px) 0; }
.zl-brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--zl-text);
  text-decoration: none;
}
.zl-brand img, .zl-brand svg { width: 34px; height: 34px; display: block; flex: none; }
.zl-brand-mark { flex: none; width: 38px; height: 38px; padding: 5px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.zl-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.zl-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.zl-brand-name { font-family: var(--zl-title); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; }
.zl-brand-sub { font-family: var(--zl-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zl-muted); }
a.zl-brand:hover .zl-brand-name { color: var(--zl-cyan); }

.zl-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 44px 16px 56px;
}
.zl-footer {
  padding: 14px clamp(16px, 4vw, 40px) 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: .8rem;
  color: var(--zl-muted);
}
.zl-footer p { margin: 0; }
.zl-motion-toggle {
  appearance: none;
  font: inherit;
  font-family: var(--zl-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--zl-lead);
  background: rgba(13, 19, 34, .62);
  border: 1px solid var(--zl-line);
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 14px;
  cursor: pointer;
}
.zl-motion-toggle[hidden] { display: none; }
.zl-motion-toggle:hover { border-color: var(--zl-cyan); color: var(--zl-text); }
.zl-motion-toggle::before { content: '❚❚'; font-size: .6rem; margin-right: 8px; color: var(--zl-cyan); }
.zl-motion-toggle[aria-pressed="true"]::before { content: '▶'; }

/* ============================== Karte «Mission Control» ============================== */
.zl-card {
  position: relative;
  isolation: isolate;
  width: min(440px, 100%);
  min-width: 0;
  padding: 34px 30px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 27, 45, .94), rgba(10, 15, 27, .96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 80px -30px rgba(113, 82, 218, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  .zl-card {
    background: linear-gradient(180deg, rgba(18, 27, 45, .86), rgba(10, 15, 27, .9));
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
  }
}
/* Irisierender Rand; der helle Abschnitt folgt dem Zeiger (--zl-edge aus zukunft-login.js). */
.zl-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--zl-edge), rgba(255, 255, 255, .1), var(--zl-violet) 8%, var(--zl-cyan) 16%, var(--zl-mint) 21%, rgba(255, 255, 255, .1) 34%, rgba(255, 255, 255, .06) 70%, rgba(164, 146, 255, .35) 88%, rgba(255, 255, 255, .1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.zl-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(105, 225, 245, .75), transparent);
  pointer-events: none;
}
/* Andock-Rahmen: vier Eckwinkel wie bei einer Zielerfassung */
.zl-fx {
  position: absolute;
  inset: -12px;
  z-index: -2;
  pointer-events: none;
  opacity: .8;
  --zl-corner: rgba(105, 225, 245, .7);
  background:
    linear-gradient(var(--zl-corner), var(--zl-corner)) left top / 20px 1px no-repeat,
    linear-gradient(var(--zl-corner), var(--zl-corner)) left top / 1px 20px no-repeat,
    linear-gradient(var(--zl-corner), var(--zl-corner)) right top / 20px 1px no-repeat,
    linear-gradient(var(--zl-corner), var(--zl-corner)) right top / 1px 20px no-repeat,
    linear-gradient(var(--zl-corner), var(--zl-corner)) left bottom / 20px 1px no-repeat,
    linear-gradient(var(--zl-corner), var(--zl-corner)) left bottom / 1px 20px no-repeat,
    linear-gradient(var(--zl-corner), var(--zl-corner)) right bottom / 20px 1px no-repeat,
    linear-gradient(var(--zl-corner), var(--zl-corner)) right bottom / 1px 20px no-repeat;
}
.zl-card:focus-within { box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 90px -24px rgba(105, 225, 245, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
.zl-scan {
  position: absolute;
  top: 12px;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--zl-cyan), var(--zl-mint), transparent);
  box-shadow: 0 0 18px var(--zl-cyan);
  opacity: 0;
  pointer-events: none;
}
.zl-rakete {
  position: absolute;
  top: -40px;
  right: -8px;
  width: 58px;
  height: 108px;
  pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(105, 225, 245, .28));
}
.zl-rakete svg { display: block; width: 100%; height: 100%; overflow: visible; }

.zl-eyebrow {
  margin: 0 0 6px;
  font-family: var(--zl-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--zl-cyan);
  padding-right: 56px;
}
.zl-eyebrow span { color: var(--zl-muted); }
.zl-card h1 {
  margin: 0 0 8px;
  font-family: var(--zl-title);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--zl-text);
  background: var(--zl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere;
}
.zl-lead { margin: 0 0 22px; color: var(--zl-lead); font-size: .98rem; overflow-wrap: anywhere; }

/* ============================== Formular ============================== */
.zl-field { margin: 0 0 16px; }
.zl-label { display: block; margin: 0 0 6px; font-size: .85rem; font-weight: 600; color: var(--zl-lead); }
.zl-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--zl-text);
  background: var(--zl-field);
  border: 1px solid var(--zl-field-border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.zl-input::placeholder { color: #8391ad; opacity: 1; }
.zl-input:hover { border-color: #8391ad; }
.zl-input:focus, .zl-input:focus-visible {
  outline: 2px solid var(--zl-focus);
  outline-offset: 1px;
  border-color: var(--zl-focus);
  box-shadow: 0 0 0 5px rgba(105, 225, 245, .18);
}
.zl-hint { margin: 6px 0 0; font-size: .82rem; color: var(--zl-muted); }
.zl-btn + .zl-hint { margin-top: 14px; text-align: center; }
.zl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--zl-ink);
  background: var(--zl-grad);
  box-shadow: 0 8px 26px -8px rgba(105, 225, 245, .45);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.zl-btn:hover { filter: brightness(1.08); box-shadow: 0 10px 32px -8px rgba(105, 225, 245, .6); }
.zl-btn:active { transform: translateY(1px); }
.zl-btn:focus-visible { box-shadow: 0 0 0 6px rgba(154, 245, 212, .22), 0 10px 32px -8px rgba(105, 225, 245, .6); }
.zl-btn:focus-visible, .zl-link:focus-visible, .zl-motion-toggle:focus-visible, .zl-brand:focus-visible {
  outline: 3px solid var(--zl-focus);
  outline-offset: 3px;
}
.zl-btn--ghost {
  color: var(--zl-text);
  background: rgba(105, 225, 245, .06);
  border-color: rgba(105, 225, 245, .55);
  box-shadow: none;
}
.zl-btn--ghost:hover { background: rgba(105, 225, 245, .12); border-color: var(--zl-cyan); box-shadow: 0 0 26px -8px rgba(105, 225, 245, .5); }
.zl-oder { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: .82rem; color: var(--zl-muted); }
.zl-oder::before, .zl-oder::after { content: ''; flex: 1; height: 1px; background: var(--zl-line); }
.zl-links { margin: 18px 0 0; text-align: center; font-size: .88rem; color: var(--zl-muted); }
.zl-links + .zl-links { margin-top: 8px; }
.zl-link { color: var(--zl-cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; border-radius: 3px; }
.zl-link:hover { color: var(--zl-mint); }

.zl-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.5;
  border: 1px solid;
}
.zl-alert--error { color: var(--zl-err); background: rgba(255, 90, 110, .09); border-color: rgba(255, 130, 148, .55); }
.zl-alert--ok { color: var(--zl-mint); background: rgba(154, 245, 212, .07); border-color: rgba(154, 245, 212, .4); }
.zl-alert--info { color: var(--zl-lead); background: rgba(105, 225, 245, .06); border-color: rgba(105, 225, 245, .35); }
.zl-alert code { font-family: var(--zl-mono); font-size: .88em; }

/* ============================== Rakete (SVG-Farben) ============================== */
.zl-stop-hull-dark { stop-color: var(--zl-hull-dark); }
.zl-stop-hull-light { stop-color: var(--zl-hull-light); }
.zl-stop-hull-mid { stop-color: var(--zl-hull-mid); }
.zl-stop-violet { stop-color: var(--zl-violet); }
.zl-stop-indigo { stop-color: var(--zl-indigo); }
.zl-stop-white { stop-color: #fff; }
.zl-stop-cyan { stop-color: var(--zl-cyan); }
.zl-stop-fade { stop-color: var(--zl-violet); stop-opacity: 0; }
.zl-stop-window { stop-color: var(--zl-window); }
.zl-r-seam { fill: none; stroke: var(--zl-hull-dark); stroke-width: 2; }
.zl-r-frame { fill: var(--zl-hull-dark); stroke: var(--zl-hull-light); stroke-width: 3; }
.zl-r-glint { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .65; }
.zl-r-cfin { fill: var(--zl-indigo); }
.zl-r-nozzle { fill: var(--zl-hull-dark); }
.zl-r-mark { fill: none; stroke: var(--zl-hull-dark); stroke-width: 2; }
.zl-r-flame { transform-origin: 300px 350px; opacity: .85; }

/* ============================== Bewegung (nur mit html.zl-motion) ============================== */
@keyframes zl-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes zl-flame { from { transform: scaleY(.9); } to { transform: scaleY(1.14); } }
@keyframes zl-materialize { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes zl-scan { 0% { opacity: 0; top: 12px; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { opacity: 0; top: calc(100% - 14px); } }
@media (prefers-reduced-motion: no-preference) {
  html .zl-card { animation: zl-materialize .8s cubic-bezier(.2, .7, .2, 1) .05s backwards; }
  html .zl-scan { animation: zl-scan .95s cubic-bezier(.4, 0, .2, 1) .1s backwards; }
}
html.zl-motion:not(.zl-still) .zl-r-float { animation: zl-hover 6s ease-in-out infinite; }
html.zl-motion:not(.zl-still) .zl-r-flame { animation: zl-flame 1.2s ease-in-out infinite alternate; }
html.zl-motion:not(.zl-still) .zl-btn { will-change: transform; }

@media (max-width: 560px) {
  .zl-main { padding: 40px 16px 40px; }
  .zl-card { padding: 28px 20px 22px; border-radius: 18px; }
  .zl-fx { inset: -8px; }
  .zl-rakete { top: -34px; right: -4px; width: 46px; height: 86px; }
}
@media (max-width: 420px) {
  .zl-fx { display: none; }
  .zl-brand-sub { letter-spacing: .08em; }
}
@media (max-height: 560px) and (orientation: landscape) { .zl-main { padding-top: 32px; } }

@media (forced-colors: active) {
  .zl-net, .zl-planet, .zl-fx, .zl-scan { display: none; }
  .zl-card { border: 1px solid CanvasText; }
  .zl-card h1 { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
  .zl-btn { border-color: ButtonText; }
}
@media print { .zl-sky, .zl-motion-toggle { display: none; } body.zl { background: #fff; color: #000; } }
