/* Bewegende achtergrond en keuzescherm van welkom/inloggen/registreren. Alleen transform en opacity (plus de lijn), cyclus 30 s. */

.login-visual { display: none; position: fixed; inset: 0; z-index: -5; pointer-events: none; overflow: hidden; opacity: .7; }
body.unauth:not(.landing) { background: transparent; }   /* anders dekt de body-achtergrond de visual af */
body.unauth:not(.landing) .login-visual { display: block; }
:root[data-theme="light"] .login-visual { opacity: .62; }
.lv-stop-a { stop-color: var(--brand-violet); stop-opacity: .16; }
.lv-stop-b { stop-color: var(--brand-violet); stop-opacity: 0; }
.lv-vlak { animation: lv-vlak 30s linear infinite; }
@keyframes lv-vlak { 0%, 25% { opacity: 0; } 45%, 85% { opacity: 1; } 100% { opacity: 0; } }
.lv-svg { width: 100%; height: 100%; }
.lv-lijn { fill: none; stroke: var(--brand-violet); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 0; animation: lv-teken 30s linear infinite; }
.lv-candle { transform-box: fill-box; transform-origin: center; animation: lv-candle 15s ease-in-out infinite; }
.lv-op { fill: var(--brand-green); }
.lv-neer { fill: var(--brand-coral); }
.lv-c1 { animation-delay: -3s; } .lv-c2 { animation-delay: -6s; } .lv-c3 { animation-delay: -9s; } .lv-c4 { animation-delay: -12s; }
.lv-ring, .lv-deel { fill: none; stroke-width: 22; }
.lv-ring { stroke: var(--brand-lavender); }
.lv-deel { stroke: var(--brand-violet); stroke-linecap: round; }
.lv-deel2 { stroke: var(--brand-green); }
.lv-draai { transform-box: fill-box; transform-origin: center; animation: lv-draai 30s linear infinite; }
.lv-zweef { animation: lv-zweef 30s ease-in-out infinite; }
.lv-zweef[data-f="1"] { animation-delay: -8s; } .lv-zweef[data-f="2"] { animation-delay: -16s; } .lv-zweef[data-f="3"] { animation-delay: -23s; }
.lv-munt circle { fill: none; stroke: var(--brand-green); stroke-width: 3; }
.lv-munt text { fill: var(--brand-green); font: 700 22px var(--font); }
.lv-huis path { fill: none; stroke: var(--brand-lilac); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.login-visual.gepauzeerd * { animation-play-state: paused; }

@keyframes lv-teken { 0% { stroke-dashoffset: 1000; opacity: 1; } 40% { stroke-dashoffset: 0; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lv-candle { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-14px) scaleY(1.15); } }
@keyframes lv-draai { to { transform: rotate(360deg); } }
@keyframes lv-zweef { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(10px, -16px) rotate(4deg); } 66% { transform: translate(-8px, 8px) rotate(-3deg); } }

@media (prefers-reduced-motion: reduce) {
  .login-visual * { animation: none !important; }
}

/* Keuzescherm en formulier dat inschuift over dezelfde achtergrond. */
.auth-card.welkom-kaart { position: relative; animation: welkom-in .32s ease-out both; background: var(--surface-1); }
:root[data-theme="light"] .auth-card.welkom-kaart { background: var(--surface-strong); }
.auth-card.welkom-kaart.terug { animation-name: welkom-terug; }
@keyframes welkom-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes welkom-terug { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-card.welkom-kaart { animation: none; } }
.welkom-kop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 26px; }
.welkom-kop .auth-brand { margin-bottom: 0; }
.welkom-acties { display: flex; align-items: center; gap: 2px; }
.welkom-terug, .welkom-taal { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 12px; border: 0; background: none; color: var(--cream); font: 700 12px var(--font); letter-spacing: .06em; cursor: pointer; text-decoration: none; }
.welkom-terug:hover, .welkom-taal:hover { background: var(--cream-faint); text-decoration: none; }
.welkom-terug svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.welkom-keuzes { display: grid; gap: 12px; margin-top: 6px; }
.welkom-keuze { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface-low); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.welkom-keuze:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.welkom-keuze.nadruk { background: var(--btn-grad); border-color: transparent; color: var(--btn-text); }
.welkom-keuze .ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--cream-dim); }
.welkom-keuze.nadruk .ico { background: rgba(255,255,255,.18); }
.welkom-keuze .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.welkom-keuze strong { display: block; font-size: 17px; }
.welkom-keuze small { display: block; font-size: 13px; opacity: .8; margin-top: 2px; }
.welkom-keuze .pijl { margin-left: auto; opacity: .7; }
.welkom-pk { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--text-faint); font: 600 12px var(--font); cursor: pointer; }
.welkom-pk:hover { color: var(--cream); }
.welkom-versie { margin: 18px 0 0; text-align: center; font-size: 11px; color: var(--text-faint); }
.welkom-versie:empty { display: none; }
a.welkom-keuze { text-decoration: none; }

/* Telefoon zonder app: alleen de weg naar de app (app.js mobielHtml). */
.mobiel-telefoon { position: relative; height: 210px; margin: -4px 0 18px; display: flex; justify-content: center; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.mobiel-telefoon::before { content: ""; position: absolute; inset: 20% 10% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .35), transparent); filter: blur(16px); }
.mobiel-telefoon .ios-device { --w: 180px; position: relative; animation: mobiel-zweef 6s ease-in-out infinite; }
@keyframes mobiel-zweef { 0%, 100% { transform: translateY(14px); } 50% { transform: translateY(4px); } }
.mobiel-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.mobiel-os { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-faint); font-weight: 600; font-size: 13px; }
.mobiel-os svg { width: 16px; height: 16px; fill: currentColor; }
.mobiel-os.actief { background: var(--btn-grad); border-color: transparent; color: var(--btn-text); }
.mobiel-aanvraag { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--brand-green); }
.mobiel-aanvraag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.mobiel-stappen { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.mobiel-stappen li { display: flex; gap: 12px; align-items: flex-start; }
.mobiel-stappen .nr { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--cream-dim); font-weight: 700; font-size: 13px; }
.mobiel-stappen strong { display: block; font-size: 15px; }
.mobiel-stappen small { display: block; font-size: 13px; color: var(--text-faint); margin-top: 1px; }
.mobiel-code { margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--border-strong); text-align: center; }
.mobiel-code small { display: block; font-size: 12px; color: var(--text-faint); }
.mobiel-code b { font-size: 18px; letter-spacing: .08em; user-select: all; }
@media (prefers-reduced-motion: reduce) { .mobiel-telefoon .ios-device { animation: none; transform: translateY(10px); } }
