:root {
  --teal: #2aa3cf;
  --teal-light: #54c5e8;
  --teal-deep: #0b4f6c;
  --night: #061a26;
  --leaf: #9be7b0;
  --ink: #0f2733;
  --silver: #d7dbdf;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eaf6fb; background: var(--night); overflow: hidden;
}

/* ------------------------------------------------ Hintergrund */
.sky {
  position: fixed; inset: 0; overflow: hidden;
  background: radial-gradient(1200px 800px at 20% 10%, #0f4a66 0%, transparent 60%),
              radial-gradient(900px 700px at 90% 90%, #0b5a4c 0%, transparent 60%),
              linear-gradient(160deg, #062232 0%, #041420 100%);
}
.aurora { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(80px); opacity: .45; mix-blend-mode: screen; }
.a1 { background: #1f9fd0; top: -25vmax; left: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.a2 { background: #23b38f; bottom: -30vmax; right: -20vmax; animation: drift2 32s ease-in-out infinite alternate; }
.a3 { background: #3b6fd6; top: 30%; left: 45%; width: 40vmax; height: 40vmax; opacity: .25; animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, -10vmax) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-20vmax, 8vmax) scale(.85); } }

.flows { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow { stroke-dasharray: 260 1400; animation: flow 14s linear infinite; }
.f2 { animation-duration: 18s; animation-delay: -4s; }
.f3 { animation-duration: 22s; animation-delay: -9s; }
.f4 { animation-duration: 20s; animation-delay: -2s; }
.f5 { animation-duration: 26s; animation-delay: -12s; }
@keyframes flow { from { stroke-dashoffset: 1660; } to { stroke-dashoffset: 0; } }

.particles, .particles::before, .particles::after {
  position: absolute; inset: -50%; content: "";
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, rgba(159, 230, 251, .7), transparent),
                    radial-gradient(1px 1px at 120px 80px, rgba(155, 231, 176, .6), transparent),
                    radial-gradient(1.5px 1.5px at 200px 160px, rgba(255, 255, 255, .5), transparent),
                    radial-gradient(1px 1px at 60px 220px, rgba(159, 230, 251, .5), transparent);
  background-size: 260px 260px; animation: rise 60s linear infinite;
}
.particles::before { background-size: 380px 380px; animation-duration: 90s; opacity: .7; }
.particles::after { background-size: 180px 180px; animation-duration: 45s; opacity: .4; }
@keyframes rise { to { transform: translateY(-260px); } }

/* ------------------------------------------------ Karte */
.stage { position: relative; min-height: 100%; display: grid; place-items: center; padding: 24px; }
.card {
  width: min(420px, 100%); padding: 34px 34px 26px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  animation: enter .9s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes enter { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.brand { text-align: center; margin-bottom: 8px; }
.emblem-wrap { position: relative; display: inline-block; animation: float 6s ease-in-out infinite; }
.emblem-wrap::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(84, 197, 232, .55) 0%, rgba(84, 197, 232, 0) 70%);
  animation: glow 5s ease-in-out infinite;
}
.emblem { display: block; width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 0 0 9px rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .35); }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes glow { 50% { opacity: .45; transform: scale(.92); } }

.wordmark {
  display: block; width: 210px; height: auto; margin: 18px auto 0;
  filter: drop-shadow(0 2px 12px rgba(84, 197, 232, .45));
}
.tagline { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: rgba(234, 246, 251, .75); margin-top: 10px; }
h1 { font-weight: 500; font-size: 18px; text-align: center; margin: 18px 0 22px; color: #fff; letter-spacing: .3px; }
h1::after { content: ""; display: block; width: 44px; height: 2px; margin: 10px auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--teal-light), var(--leaf)); }

/* ------------------------------------------------ Formular */
.field { position: relative; margin-bottom: 14px; }
.field input {
  width: 100%; padding: 20px 44px 8px 14px; font: inherit; color: #fff;
  background: rgba(4, 25, 37, .45); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus { border-color: var(--teal-light); box-shadow: 0 0 0 4px rgba(95, 211, 243, .18); background: rgba(4, 25, 37, .6); }
.field label {
  position: absolute; left: 15px; top: 14px; color: rgba(234, 246, 251, .65); pointer-events: none;
  transition: transform .18s, font-size .18s, color .18s, top .18s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 6px; font-size: 11px; color: var(--teal-light); letter-spacing: .4px; }
.reveal { position: absolute; right: 8px; top: 9px; background: none; border: 0; color: rgba(255, 255, 255, .6); cursor: pointer; font-size: 16px; padding: 6px; }
.reveal:hover { color: #fff; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(234, 246, 251, .8); margin: 4px 0 18px; cursor: pointer; }
.check input { accent-color: var(--teal); width: 16px; height: 16px; }

.go {
  position: relative; width: 100%; padding: 13px; border: 0; border-radius: 12px; cursor: pointer; overflow: hidden;
  font: 600 15px system-ui, sans-serif; letter-spacing: .4px; color: #04202d;
  background: linear-gradient(100deg, #7fe0fb, #2aa3cf 50%, #9be7b0); background-size: 200% 100%;
  box-shadow: 0 10px 28px rgba(42, 163, 207, .4); transition: background-position .5s, transform .15s, box-shadow .2s;
}
.go:hover { background-position: 100% 0; box-shadow: 0 14px 34px rgba(42, 163, 207, .55); }
.go:active { transform: translateY(1px); }
.go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-100%); }
.go:hover::after { animation: shine 1s; }
@keyframes shine { to { transform: translateX(100%); } }
.go[disabled] { opacity: .7; cursor: progress; }
.go[disabled] span::after { content: " …"; }

.info { font-size: 14px; color: rgba(234, 246, 251, .9); margin: 0 0 14px; text-align: center; }
.info small { color: rgba(234, 246, 251, .65); }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin: -6px 0 14px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f18a59, #fbb315, #9be7b0); transition: width .3s; }

.error { min-height: 22px; margin: 14px 0 0; text-align: center; color: #ffb4a8; font-size: 13px; }
footer { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(234, 246, 251, .45); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-height: 640px) { .emblem { width: 64px; height: 64px; } .wordmark { width: 150px; } .card { padding: 22px; } }
