/* =========================================================
   Anmeldeseite — Nachtblau, Gold, Milchglas
   ========================================================= */

.lp {
  --lp-bg: #070d18;
  --lp-ink: #f4f1ea;
  --lp-muted: #95a3ba;
  --lp-faint: #66748c;
  --lp-gold-1: #f3dc9e;
  --lp-gold-2: #c8a154;
  --lp-gold-3: #946d18;
  --lp-line: rgba(255,255,255,0.10);

  min-height: 100vh;
  min-height: 100dvh;
  background: var(--lp-bg);
  color: var(--lp-ink);
  display: flex; flex-direction: column;
  overflow-x: hidden;
}

/* ---------------- Hintergrund ---------------- */
.lp-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.orb-gold {
  width: 58vmax; height: 58vmax;
  left: 52%; top: -22%;
  background: radial-gradient(circle at 35% 35%, rgba(232,196,120,0.70), rgba(176,131,34,0.25) 45%, transparent 70%);
  animation: drift-a 38s ease-in-out infinite alternate;
}
.orb-blue {
  width: 70vmax; height: 70vmax;
  left: -30%; top: 30%;
  background: radial-gradient(circle at 60% 40%, rgba(40,82,140,0.85), rgba(20,38,61,0.4) 50%, transparent 72%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
.orb-ember {
  width: 34vmax; height: 34vmax;
  left: 18%; top: -14%;
  background: radial-gradient(circle, rgba(160,92,58,0.45), transparent 68%);
  opacity: 0.4;
  animation: drift-c 52s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-12vmax, 10vmax, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(10vmax, -8vmax, 0) scale(0.95); } }
@keyframes drift-c { from { transform: translate3d(0,0,0); } to { transform: translate3d(14vmax, 18vmax, 0); } }

.orbits {
  position: absolute;
  left: 50%; top: 50%;
  width: max(150vmin, 1100px); height: max(150vmin, 1100px);
  transform: translate(-50%, -50%);
  opacity: 0.9;
}
.orbits circle { fill: none; stroke: rgba(200,161,84,0.13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbits circle.dashed { stroke-dasharray: 2 9; stroke: rgba(200,161,84,0.18); }
.orbits circle.fine { stroke: rgba(255,255,255,0.06); }
.orbits circle.sat { fill: var(--lp-gold-1); stroke: none; filter: drop-shadow(0 0 6px rgba(243,220,158,0.9)); }
.orbits circle.sat.dim { fill: rgba(243,220,158,0.6); }
.orbit-ring { transform-origin: 0 0; }
.orbit-ring.r1 { animation: spin 90s linear infinite; }
.orbit-ring.r2 { animation: spin 140s linear infinite reverse; }
.orbit-ring.r3 { animation: spin 220s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
}
.vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(3,6,12,0.75) 100%),
    linear-gradient(180deg, rgba(7,13,24,0) 60%, rgba(7,13,24,0.6) 100%);
}

/* ---------------- Kopf & Fuß ---------------- */
.lp-top, .lp-main, .lp-foot { position: relative; z-index: 1; }
.lp-top {
  display: flex; align-items: center; gap: 12px;
  padding: calc(28px + var(--safe-top)) 36px 0;
}
.lp-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 14px rgba(200,161,84,0.45)); }
.lp-word {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--lp-ink);
  opacity: 0.92;
}
.lp-foot {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 24px calc(26px + var(--safe-bottom));
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lp-faint);
}
.lp-foot .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--lp-gold-2); opacity: 0.7; }

/* ---------------- Inhalt ---------------- */
.lp-main {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px;
  padding: 40px 20px 48px;
}
.lp-intro { text-align: center; max-width: 640px; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--lp-gold-2);
  padding: 7px 16px 7px 14px;
  border: 1px solid rgba(200,161,84,0.28);
  border-radius: 999px;
  background: rgba(200,161,84,0.07);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lp-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lp-gold-1);
  box-shadow: 0 0 12px var(--lp-gold-1);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.lp-title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--lp-ink);
  text-wrap: balance;
}
.lp-title .accent {
  font-weight: 400;
  background: linear-gradient(110deg, var(--lp-gold-1) 0%, var(--lp-gold-2) 45%, #e9c97f 70%, var(--lp-gold-3) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lp-sub {
  margin-top: 18px;
  font-size: 16px; line-height: 1.6;
  color: var(--lp-muted);
}

/* ---------------- Karte ---------------- */
.lp-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 26px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.025) 100%);
  box-shadow:
    0 40px 90px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.08) inset;
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}
.lp-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(243,220,158,0.55), rgba(255,255,255,0.08) 35%, rgba(255,255,255,0.04) 65%, rgba(200,161,84,0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.lp-form { display: flex; flex-direction: column; gap: 16px; }
.lp .field > label {
  color: var(--lp-muted);
  font-size: 10.5px; letter-spacing: 0.16em;
}
.lp .hint { font-size: 12px; color: var(--lp-faint); }
.lp .input {
  background: rgba(5,10,20,0.55);
  border: 1px solid var(--lp-line);
  color: var(--lp-ink);
  border-radius: 12px;
  min-height: 46px;
  padding: 11px 14px;
  font-size: 15px;
}
.lp .input::placeholder { color: rgba(149,163,186,0.55); }
.lp .input:focus {
  background: rgba(5,10,20,0.75);
  border-color: rgba(232,196,120,0.65);
  box-shadow: 0 0 0 4px rgba(200,161,84,0.14);
}
.lp .input[readonly] { color: var(--lp-muted); }
.lp .input:-webkit-autofill,
.lp .input:-webkit-autofill:hover,
.lp .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lp-ink);
  caret-color: var(--lp-ink);
  box-shadow: 0 0 0 1000px #0b1526 inset;
  transition: background-color 99999s;
}

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 92px; }
.pw-toggle {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--lp-muted);
  padding: 7px 10px; border-radius: 8px;
}
.pw-toggle:hover { color: var(--lp-ink); background: rgba(255,255,255,0.06); }

.lp-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-top: 6px;
  min-height: 50px;
  border-radius: 13px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  color: #1c1406;
  text-decoration: none;
  background: linear-gradient(135deg, var(--lp-gold-1) 0%, var(--lp-gold-2) 55%, #b48a2e 100%);
  box-shadow: 0 12px 30px rgba(200,161,84,0.28), inset 0 1px 0 rgba(255,255,255,0.45);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.lp-btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
}
.lp-btn:hover:not(:disabled) { box-shadow: 0 16px 38px rgba(200,161,84,0.38), inset 0 1px 0 rgba(255,255,255,0.5); filter: brightness(1.04); }
.lp-btn:hover:not(:disabled)::after { left: 120%; }
.lp-btn:active:not(:disabled) { transform: translateY(1px); }
.lp-btn:disabled { opacity: 0.6; cursor: default; }
.lp-btn > span { position: relative; z-index: 1; }
.lp-btn.ghost {
  color: var(--lp-ink);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--lp-line);
  box-shadow: none;
}

.link-btn {
  align-self: center;
  font-size: 13px; font-weight: 600;
  color: var(--lp-gold-2);
  padding: 6px 10px; border-radius: 8px;
}
.link-btn:hover { color: var(--lp-gold-1); background: rgba(200,161,84,0.08); }
.lp-note {
  font-size: 13px; line-height: 1.6; color: var(--lp-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--lp-line);
  border-radius: 12px; padding: 12px 14px;
}
.lp .error-text { color: #fca5a5; font-size: 13px; }
.lp .error-text:empty { display: none; }

/* ---------------- Auftritt ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------- Klein ---------------- */
@media (max-width: 640px) {
  .lp-top { padding: calc(20px + var(--safe-top)) 20px 0; }
  .lp-main { justify-content: flex-start; gap: 26px; padding: 9vh 16px 36px; }
  .lp-sub { font-size: 15px; }
  .lp-card { padding: 22px 18px 18px; border-radius: 20px; }
  .orb { filter: blur(70px); }
  .lp-foot { flex-direction: column; gap: 6px; }
  .lp-foot .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .orbit-ring, .lp-title .accent, .lp-eyebrow .dot { animation: none !important; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .lp-btn::after { display: none; }
}
