/* nuchtr v2, auth.css. Inloggen, registreren, wachtwoord, inloglink (login.js), betaalmuur (expired.js) en
   onboarding (start.js). Klassen .s-auth* en .s-start*. Alleen tokens, geen losse kleuren. */

.s-auth-screen { min-height: 100vh; min-height: 100dvh; }
.s-auth { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 48px 16px 32px; overflow: hidden; isolation: isolate; }

/* Twee zachte radials: de enige plek met gloed (4.1). */
.s-auth__glow { display: none; } /* geen gloed (brandboek) */
.s-auth__glow::before, .s-auth__glow::after { content: ""; position: absolute; border-radius: 999px; filter: blur(120px); }
.s-auth__glow::before { width: 560px; height: 560px; left: -200px; top: -220px; background: rgba(255,255,255,.035); }
.s-auth__glow::after { width: 520px; height: 520px; right: -200px; bottom: -220px; background: rgba(255,255,255,.02); }

.s-auth__inner { position: relative; z-index: 1; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.s-auth--start .s-auth__inner { max-width: 560px; }
.s-auth__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.s-auth__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.s-auth__wordmark { height: 26px; width: auto; display: block; color: var(--ink); }
.s-auth__name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.s-auth__tagline { margin-top: 10px; font-family: var(--font-serif); font-style: normal; font-weight: 400; font-size: 22px; line-height: 1.3; color: var(--ink-2); text-align: center; letter-spacing: 0; }

.s-auth__card { width: 100%; margin-top: 28px; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-panel); }
@media (min-width: 1024px) { .s-auth__card { background: var(--panel-glass); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); } }
.s-auth__card.is-swap { animation: s-auth-in 220ms var(--ease) both; }
.s-auth__card.is-leaving { animation: s-auth-out 160ms var(--ease-in) both; }
@keyframes s-auth-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes s-auth-out { to { opacity: 0; transform: scale(.98); } }

.s-auth__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.s-auth__title em.serif { font-size: 1.12em; }
.s-auth__text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.s-auth__title + .s-auth__form, .s-auth__text + .s-auth__form { margin-top: 22px; }
.s-auth__form { display: flex; flex-direction: column; gap: 14px; }
.s-auth__form .dvj-btn--login { margin-top: 6px; }
.s-auth__forgot { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.s-auth__forgot:hover { color: var(--ink); }

.s-auth__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; color: var(--ink-3); }
.s-auth__or::before, .s-auth__or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.s-auth__alt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; }
.s-auth__muted { font-size: 13px; color: var(--ink-3); }
.s-auth__a { color: var(--live); font-weight: 500; }
.s-auth__a:hover { text-decoration: underline; text-underline-offset: 3px; }
.s-auth__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.s-auth__link:hover { color: var(--ink); }
.s-auth__back { display: flex; justify-content: center; width: 100%; margin-top: 6px; }
.s-auth__note { margin-top: 2px; font-size: 13px; color: var(--neg); }
.s-auth__note--ok { color: var(--ink-2); }
.s-auth__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); }
.s-auth__icon .ic { width: 24px; height: 24px; }
.s-auth__email { margin: 14px 0 18px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.s-auth__busy { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 0; text-align: center; color: var(--ink); }
.s-auth__box { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding: 16px; background: var(--panel-2); border-radius: var(--r-lg); }

/* Sterktebalk bij een nieuw wachtwoord: vier grijze delen, het laatste wit bij sterk. */
.s-auth__strength { display: flex; align-items: center; gap: 10px; margin-top: -4px; }
.s-auth__segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; flex: 1 1 auto; }
.s-auth__seg { height: 3px; border-radius: 999px; background: var(--panel-3); transition: background-color 160ms; }
.s-auth__seg.is-on { background: var(--ink-3); }
.s-auth__seg.is-strong { background: var(--ink); }
.s-auth__strength-label { min-width: 44px; font-size: 12px; color: var(--ink-3); text-align: right; }

.s-auth__after { width: 100%; }
.s-auth__meta { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; font-size: 12px; color: var(--ink-3); text-align: center; overflow-wrap: anywhere; }
.s-auth__foot { margin-top: 32px; }
.s-auth__word { height: 14px; width: auto; opacity: .4; }

/* Betaalmuur: geblurde schets van het dashboard erachter (4.1). */
.s-auth__teaser { position: absolute; inset: 0; z-index: -2; padding: 56px 48px; filter: blur(12px); opacity: .5; pointer-events: none; }
.s-auth__teaser-head { display: block; width: 32%; height: 34px; border-radius: var(--r-sm); background: var(--panel-2); }
.s-auth__teaser-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.s-auth__teaser-row--2 { grid-template-columns: 2fr 1fr; }
.s-auth__teaser-tile { display: block; height: 112px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.s-auth__teaser-tile--big { height: 300px; }
.s-auth__card--wall { max-width: 440px; text-align: left; }
.s-auth--wall .s-auth__inner { max-width: 440px; }
.s-auth__icon--lock { width: 56px; height: 56px; }
.s-auth__icon--lock .ic { width: 28px; height: 28px; }
.s-auth__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.s-auth__soon { padding: 14px 16px; background: var(--panel-2); border-radius: var(--r-md); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.s-auth__alt--wall { margin-top: 14px; }

/* ---------- Onboarding (4.2) ---------- */
.s-start__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.s-start__dots { display: flex; align-items: center; gap: 8px; }
.s-start__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-4); transition: background-color 200ms, width 200ms, height 200ms; }
.s-start__dot.is-done { background: var(--ink); }
.s-start__dot.is-active { width: 8px; height: 8px; background: var(--ink); }
.s-start__count { font-size: 12px; color: var(--ink-3); }
.s-start__title { margin-bottom: 2px; }
.s-start__body > .s-auth__text { margin-bottom: 22px; }
.s-start__fields { display: flex; flex-direction: column; gap: 16px; }
.s-start__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.s-start__type { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); color: var(--ink-2); font-size: 13px; font-weight: 500; text-align: left; transition: border-color 150ms, background-color 150ms, color 150ms; }
.s-start__type:hover { border-color: var(--line-3); color: var(--ink); }
.s-start__type.is-selected { border-color: var(--accent); background: var(--panel-3); color: var(--ink); font-weight: 600; }
.s-start__firm { display: flex; flex-direction: column; gap: 16px; }
.s-start__rules { padding: 14px 16px; background: var(--panel-2); border-radius: var(--r-md); }
.s-start__rules-title { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.s-start__rule-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.s-start__rule { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-start__rule b { font-size: 15px; font-weight: 600; }
.s-start__have { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; background: var(--panel-2); border-radius: var(--r-lg); }
.s-start__have-title { font-size: 14px; font-weight: 600; }
.s-start__accs { display: flex; flex-direction: column; gap: 8px; }
.s-start__accs li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.s-start__choices .dvj-choice { min-height: 96px; }
.s-start__note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); min-height: 20px; }
.s-start__sum { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.s-start__sum-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.s-start__sum-row:last-child { border-bottom: 0; }
.s-start__sum-v { font-size: 14px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.s-start__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.s-start__left, .s-start__right { display: flex; align-items: center; gap: 8px; }
.s-start__right { margin-left: auto; }

@media (max-width: 767px) {
  .s-auth { align-items: flex-start; padding: 40px 16px 28px; }
  .s-auth__card { padding: 24px 20px; margin-top: 22px; }
  .s-auth__title { font-size: 20px; }
  .s-auth__tagline { font-size: 20px; }
  .s-auth__teaser { padding: 24px 16px; }
  .s-auth__teaser-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-auth__teaser-row--2 { grid-template-columns: 1fr; }
  .s-start__rule-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-start__foot { position: sticky; bottom: 0; margin: 22px -20px -24px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--panel); border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .s-start__right .dvj-btn--secondary { padding: 0 12px; }
}
@media (max-width: 479px) { .s-start__choices { grid-template-columns: minmax(0, 1fr); } .s-start__choices .dvj-choice { min-height: 0; } }

/* Het veld zelf toont de focus (rand en ring); geen tweede omlijning om de input. */
.s-auth .dvj-field__input:focus-visible, .s-auth .dvj-field__select:focus-visible, .s-auth .dvj-field__textarea:focus-visible { outline: none; }
.s-auth__alt .dvj-btn--text { padding-left: 0; padding-right: 0; }
.s-auth a.dvj-btn:hover, .s-auth .s-auth__link:hover, .s-auth .s-auth__forgot:hover { text-decoration: none; }
