/* ============================================================
   Registreren — short, conversion-focused two-column layout
   Left: magic-link card (primary) OR password form (alt)
         OR confirmation state (after magic-link sent)
   Right: sticky tier summary card with trial + cancellation

   Werkt naast auth.css — alle brand-tokens en topbar erven we
   van auth.css. Tokens hieronder zijn extra (oranje varianten,
   sunken bg, neutrals) die auth.css nog niet had.
   ============================================================ */

:root {
  /* Aanvullende oranje-varianten (auth.css heeft alleen 50/600) */
  --rg-orange-100: #FDEEDB;
  --rg-orange-200: #FBDDBD;
  --rg-orange-300: #F5B06B;
  --rg-orange-700: #B25904;

  /* Foreground / background aliases gebruikt in design */
  --rg-fg-1: #22263C;       /* primary heading */
  --rg-fg-2: #343852;       /* body */
  --rg-fg-3: #6B7088;       /* secondary */
  --rg-fg-4: #9A9FB0;       /* tertiary / placeholder */

  --rg-bg-sunken: #EEEFF4;
  --rg-bg-accent-soft: #FFF7EF;

  --rg-neutral-100: #EEEFF4;
  --rg-neutral-300: #CBCED9;

  /* Status (matches design) */
  --rg-success: #1F9D6A;
  --rg-success-bg: #E4F5ED;
  --rg-success-fg: #0F6B47;
  --rg-warning: #D98A0A;
  --rg-danger: #D64545;
  --rg-danger-bg: #FBE5E5;
  --rg-danger-fg: #902626;

  /* Radii */
  --rg-r-xs: 4px;
  --rg-r-sm: 6px;
  --rg-r-md: 8px;
  --rg-r-lg: 12px;
  --rg-r-xl: 16px;
  --rg-r-2xl: 24px;
  --rg-r-full: 999px;

  /* Shadows */
  --rg-shadow-xs: 0 1px 2px rgba(37, 43, 72, 0.06);
  --rg-shadow-sm: 0 1px 2px rgba(37, 43, 72, 0.06), 0 1px 3px rgba(37, 43, 72, 0.08);
  --rg-shadow-lg: 0 12px 24px -8px rgba(37, 43, 72, 0.14), 0 4px 8px -2px rgba(37, 43, 72, 0.06);
  --rg-shadow-focus: 0 0 0 4px color-mix(in oklch, var(--brand-navy) 22%, transparent);

  /* Motion */
  --rg-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rg-dur-fast: 120ms;
  --rg-dur-base: 180ms;

  --rg-app-nav-h: 58px;
  --rg-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Page shell ---------- */
.rg-page {
  min-height: calc(100vh - var(--rg-app-nav-h));
  padding-top: calc(var(--rg-app-nav-h) + 24px);
  padding-bottom: clamp(40px, 5vw, 80px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.rg-page::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 560px; height: 560px;
  background: radial-gradient(closest-side,
    color-mix(in oklch, var(--brand-orange) 12%, transparent) 0%,
    transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.rg-page::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side,
    color-mix(in oklch, var(--brand-navy) 10%, transparent) 0%,
    transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.rg-shell {
  width: min(100%, 1080px);
  margin-inline: auto;
  padding-inline: 20px;
}

.rg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
@media (max-width: 880px) {
  .rg-grid { grid-template-columns: 1fr; }
}

/* ---------- Header above password form ---------- */
.rg-head {
  margin-bottom: 22px;
}
.rg-head__mark {
  display: inline-flex;
  margin-bottom: 16px;
}
.rg-head__mark img { height: 32px; display: block; }
.rg-head h1 {
  font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy-800);
  margin: 0 0 8px;
}
.rg-head__lede {
  font-size: 15.5px;
  color: var(--rg-fg-3);
  margin: 0 0 14px;
  line-height: 1.55;
  max-width: 44ch;
}
.rg-aftercard {
  text-align: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--rg-fg-3);
}
.rg-aftercard a {
  color: var(--rg-fg-2);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  text-decoration: none;
}
.rg-aftercard a:hover {
  color: var(--brand-navy);
  border-bottom-color: currentColor;
}

/* ---------- Password card ---------- */
.rg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--rg-r-2xl);
  padding: clamp(24px, 2.8vw, 36px);
  box-shadow: var(--rg-shadow-lg);
}

.rg-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-top: 4px;
}
.rg-step:first-child { padding-top: 0; }
.rg-step__num {
  width: 22px; height: 22px;
  border-radius: var(--rg-r-full);
  background: var(--brand-navy-50);
  color: var(--brand-navy);
  font-size: 12px;
  font-weight: 700;
  display: grid; place-items: center;
  flex: none;
}
.rg-step__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rg-fg-3);
}

.rg-form { display: grid; gap: 14px; }
.rg-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .rg-row-2 { grid-template-columns: 1fr; }
}

.rg-field { display: flex; flex-direction: column; gap: 6px; }
.rg-field label {
  font-size: 13px; font-weight: 600; color: var(--rg-fg-2);
}
.rg-input-wrap { position: relative; display: flex; }
.rg-field input {
  font-family: var(--rg-font-sans);
  font-size: 15px;
  color: var(--rg-fg-1);
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--rg-r-md);
  width: 100%;
  transition: border-color var(--rg-dur-fast), box-shadow var(--rg-dur-fast);
}
.rg-field input::placeholder { color: var(--rg-fg-4); }
.rg-field input:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: var(--rg-shadow-focus);
}
.rg-field input.has-toggle { padding-right: 44px; }
.rg-field input.is-invalid {
  border-color: var(--rg-danger);
}

.rg-toggle {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--rg-fg-3);
  cursor: pointer;
  border-radius: var(--rg-r-sm);
}
.rg-toggle:hover { color: var(--brand-navy); background: var(--rg-bg-sunken); }

/* ---------- Password strength + requirements ---------- */
.rg-pwmeter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.rg-pwmeter__bar {
  height: 4px;
  border-radius: 2px;
  background: var(--rg-neutral-100);
  transition: background var(--rg-dur-base) var(--rg-ease-out);
}
.rg-pwmeter__bar.is-weak    { background: var(--rg-danger); }
.rg-pwmeter__bar.is-medium  { background: var(--rg-warning); }
.rg-pwmeter__bar.is-strong  { background: var(--rg-success); }

.rg-reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}
@media (max-width: 520px) {
  .rg-reqs { grid-template-columns: 1fr; }
}
.rg-reqs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--rg-fg-3);
  line-height: 1.4;
}
.rg-reqs__dot {
  width: 14px; height: 14px;
  border-radius: var(--rg-r-full);
  background: var(--rg-neutral-100);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex: none;
  color: transparent;
  transition: background var(--rg-dur-fast), border-color var(--rg-dur-fast), color var(--rg-dur-fast);
}
.rg-reqs li.is-met { color: var(--rg-fg-2); }
.rg-reqs li.is-met .rg-reqs__dot {
  background: var(--rg-success);
  border-color: var(--rg-success);
  color: #fff;
}

.rg-match {
  font-size: 12.5px;
  color: var(--rg-fg-3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rg-match.is-ok { color: var(--rg-success-fg); }
.rg-match.is-bad { color: var(--rg-danger-fg); }

/* ---------- Consent ---------- */
.rg-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--rg-fg-2);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}
.rg-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  flex: none;
  margin: 2px 0 0;
  padding: 0;
  transition: background var(--rg-dur-fast), border-color var(--rg-dur-fast);
}
.rg-consent input[type="checkbox"]:checked {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 7 12 13 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.rg-consent input[type="checkbox"]:focus-visible { box-shadow: var(--rg-shadow-focus); outline: none; }
.rg-consent a {
  color: var(--brand-navy);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.rg-consent a:hover { color: var(--brand-navy-700); border-bottom-color: currentColor; }

.rg-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
  font-size: 15.5px;
  margin-top: 6px;
  background: var(--brand-orange);
  color: #fff;
  border: 1px solid var(--brand-orange);
  border-radius: var(--rg-r-md);
  font-family: var(--rg-font-sans);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background var(--rg-dur-fast) var(--rg-ease-out);
}
.rg-submit:hover { background: var(--brand-orange-600); border-color: var(--brand-orange-600); }
.rg-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.rg-fineprint {
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--rg-fg-4);
  line-height: 1.55;
}
.rg-fineprint a { color: var(--rg-fg-3); border-bottom: 1px solid transparent; text-decoration: none; }
.rg-fineprint a:hover { color: var(--brand-navy); border-bottom-color: currentColor; }

/* ---------- Error banner ---------- */
.rg-error {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--rg-danger-bg);
  border: 1px solid color-mix(in oklch, var(--rg-danger) 28%, transparent);
  border-radius: var(--rg-r-md);
  color: var(--rg-danger-fg);
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 14px;
}
.rg-error svg { flex: none; margin-top: 2px; }
.rg-error ul {
  margin: 0;
  padding-left: 18px;
}

/* ============================================================
   SUMMARY CARD (right column)
   ============================================================ */
.rg-summary {
  position: sticky;
  top: calc(var(--rg-app-nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 880px) {
  .rg-summary { position: static; }
}

.rg-sum-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--rg-r-2xl);
  overflow: hidden;
  box-shadow: var(--rg-shadow-sm);
  position: relative;
}
.rg-sum-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand-orange);
  border-radius: var(--rg-r-2xl) var(--rg-r-2xl) 0 0;
}

.rg-sum-card__head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.rg-sum-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rg-fg-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rg-sum-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand-orange) 18%, transparent);
}
.rg-sum-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 10px 0 4px;
  color: var(--brand-navy-800);
}
.rg-sum-card__sub {
  font-size: 13.5px;
  color: var(--rg-fg-3);
  margin: 0;
  line-height: 1.5;
}

.rg-sum-card__body {
  padding: 16px 22px 18px;
}

.rg-sum-card__pricelink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 22px;
  background: var(--rg-bg-accent-soft);
  border-top: 1px solid var(--rg-orange-100);
  font-size: 13.5px;
  color: var(--brand-navy-800);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--rg-dur-fast) var(--rg-ease-out);
}
.rg-sum-card__pricelink:hover {
  background: var(--rg-orange-100);
  color: var(--brand-navy-800);
}
.rg-sum-card__pricelink span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rg-orange-700);
  font-size: 12.5px;
}
.rg-sum-card__pricelink small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--rg-fg-3);
  margin-top: 2px;
}

/* Billing toggle (links — geen JS) */
.rg-billing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--rg-bg-sunken);
  border-radius: var(--rg-r-lg);
  padding: 4px;
  position: relative;
  margin-bottom: 16px;
}
.rg-billing__btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  font-family: var(--rg-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--rg-fg-3);
  padding: 9px 12px;
  border-radius: calc(var(--rg-r-lg) - 4px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: color var(--rg-dur-fast) var(--rg-ease-out);
}
.rg-billing__btn.is-active {
  color: var(--brand-navy-800);
  background: #fff;
  box-shadow: var(--rg-shadow-xs);
}
.rg-billing__save {
  font-size: 11px;
  font-weight: 600;
  background: var(--rg-orange-100);
  color: var(--rg-orange-700);
  padding: 2px 6px;
  border-radius: var(--rg-r-sm);
  letter-spacing: 0;
}

/* Price block */
.rg-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.rg-price__currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--rg-fg-2);
}
.rg-price__amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--brand-navy-800);
  letter-spacing: -0.02em;
  line-height: 1;
}
.rg-price__per {
  font-size: 14px;
  color: var(--rg-fg-3);
  margin-left: 4px;
}
.rg-price__yearly-note {
  font-size: 12.5px;
  color: var(--rg-fg-3);
  margin: 0 0 14px;
}

/* Reassurance list */
.rg-promises {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.rg-promises li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  color: var(--rg-fg-2);
  line-height: 1.45;
}
.rg-promises li b {
  color: var(--rg-fg-1);
  font-weight: 600;
  display: block;
}
.rg-promises__icon {
  width: 28px; height: 28px;
  border-radius: var(--rg-r-md);
  background: var(--brand-orange-50);
  color: var(--rg-orange-700);
  display: grid; place-items: center;
  flex: none;
  margin-top: 1px;
}
.rg-promises li:nth-child(2) .rg-promises__icon {
  background: var(--brand-navy-50);
  color: var(--brand-navy);
}
.rg-promises li:nth-child(3) .rg-promises__icon {
  background: var(--rg-success-bg);
  color: var(--rg-success-fg);
}

.rg-tierfeat {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.rg-tierfeat__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rg-fg-3);
  margin: 0 0 8px;
}
.rg-tierfeat__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
}
.rg-tierfeat__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rg-fg-2);
}
.rg-tierfeat__list svg { color: var(--rg-success); flex: none; }

.rg-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--rg-r-xl);
  font-size: 12.5px;
  color: var(--rg-fg-3);
  line-height: 1.45;
}
.rg-trust svg {
  flex: none;
  color: var(--brand-navy);
}
.rg-trust b { color: var(--rg-fg-2); font-weight: 600; }

/* ============================================================
   MAGIC LINK PATH — primary, warmer, lighter
   ============================================================ */

.rg-magic {
  background: linear-gradient(180deg,
    color-mix(in oklch, var(--brand-orange-50) 80%, #fff) 0%,
    #fff 65%);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-orange);
  border-radius: var(--rg-r-2xl);
  padding: clamp(24px, 2.8vw, 36px) clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 30px);
  box-shadow: var(--rg-shadow-lg);
  position: relative;
}

.rg-magic__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rg-orange-700);
  background: var(--rg-orange-100);
  padding: 6px 10px;
  border-radius: var(--rg-r-full);
  margin-bottom: 12px;
}
.rg-magic__eyebrow svg { color: var(--brand-orange); }

.rg-magic__title {
  font-size: clamp(1.375rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy-800);
  margin: 0 0 8px;
  line-height: 1.2;
}
.rg-magic__lede {
  font-size: 14.5px;
  color: var(--rg-fg-3);
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 50ch;
}

/* Tier chip */
.rg-tierchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--brand-navy-100);
  padding: 6px 10px 6px 8px;
  border-radius: var(--rg-r-full);
  font-size: 12.5px;
  color: var(--rg-fg-2);
  margin-bottom: 14px;
}
.rg-tierchip__dot {
  width: 16px; height: 16px;
  border-radius: var(--rg-r-full);
  background: var(--brand-navy-50);
  color: var(--brand-navy);
  display: grid; place-items: center;
  flex: none;
}
.rg-tierchip__dot svg { width: 10px; height: 10px; }
.rg-tierchip__name { font-weight: 600; color: var(--brand-navy-800); }
.rg-tierchip__price { color: var(--rg-fg-3); }
.rg-tierchip__sep { color: var(--rg-neutral-300); }

/* Magic link form */
.rg-magic__form { display: grid; gap: 12px; }

.rg-magic__field { display: grid; gap: 6px; }
.rg-magic__field label {
  font-size: 13px; font-weight: 600; color: var(--rg-fg-2);
}
.rg-magic__field input {
  font-family: var(--rg-font-sans);
  font-size: 16px;
  color: var(--rg-fg-1);
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--rg-r-md);
  width: 100%;
  transition: border-color var(--rg-dur-fast), box-shadow var(--rg-dur-fast);
}
.rg-magic__field input::placeholder { color: var(--rg-fg-4); }
.rg-magic__field input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand-orange) 22%, transparent);
}
.rg-magic__field input.is-invalid { border-color: var(--rg-danger); }

.rg-magic__cta {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  font-family: var(--rg-font-sans);
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: var(--rg-r-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--rg-dur-fast) var(--rg-ease-out), transform var(--rg-dur-fast);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 16px color-mix(in oklch, var(--brand-orange) 28%, transparent);
}
.rg-magic__cta:hover { background: var(--brand-orange-600); }
.rg-magic__cta:active { transform: translateY(1px); }
.rg-magic__cta:disabled { opacity: 0.6; cursor: not-allowed; }

.rg-magic__legal {
  font-size: 12px;
  color: var(--rg-fg-3);
  line-height: 1.55;
  margin: 6px 0 0;
  text-align: center;
}
.rg-magic__legal a {
  color: var(--rg-fg-2);
  border-bottom: 1px solid var(--border-strong);
  text-decoration: none;
}
.rg-magic__legal a:hover { color: var(--brand-navy); border-bottom-color: currentColor; }

/* Three reassurance bullets */
.rg-magic__assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border);
  list-style: none;
}
@media (max-width: 520px) {
  .rg-magic__assurance { grid-template-columns: 1fr; gap: 8px; }
}
.rg-magic__assurance li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--rg-fg-2);
  line-height: 1.4;
}
.rg-magic__assurance svg {
  color: var(--rg-success);
  flex: none;
}

/* "Liever met wachtwoord?" toggle link */
.rg-altpath {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--rg-fg-3);
}
.rg-altpath__btn {
  background: none;
  border: none;
  color: var(--brand-navy);
  font-family: var(--rg-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 6px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  text-decoration: none;
  transition: color var(--rg-dur-fast), border-color var(--rg-dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rg-altpath__btn:hover {
  color: var(--brand-navy-700);
  border-bottom-color: currentColor;
}

/* Password section wrapper */
.rg-pwsection {
  display: grid;
  gap: 18px;
}

/* Back link from password back to magic */
.rg-backlink { margin: 0 0 16px; }
.rg-backlink__btn {
  background: none;
  border: none;
  color: var(--brand-navy);
  font-family: var(--rg-font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px 6px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--rg-r-md);
  text-decoration: none;
  transition: background var(--rg-dur-fast), color var(--rg-dur-fast);
}
.rg-backlink__btn svg { transform: rotate(180deg); }
.rg-backlink__btn:hover {
  background: var(--brand-navy-50);
  color: var(--brand-navy-700);
}

/* ============================================================
   CONFIRMATION STATE
   ============================================================ */

.rg-confirm {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--rg-r-2xl);
  padding: clamp(28px, 3.2vw, 44px);
  box-shadow: var(--rg-shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rg-confirm::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--rg-orange-300) 100%);
}

.rg-confirm__icon {
  width: 64px; height: 64px;
  border-radius: var(--rg-r-full);
  background: var(--brand-orange-50);
  color: var(--brand-orange);
  display: grid; place-items: center;
  margin: 6px auto 18px;
  position: relative;
}
.rg-confirm__icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: var(--rg-r-full);
  border: 1px dashed var(--rg-orange-200);
}

.rg-confirm__title {
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy-800);
  margin: 0 0 10px;
}
.rg-confirm__lede {
  font-size: 15px;
  color: var(--rg-fg-2);
  line-height: 1.55;
  margin: 0 auto 4px;
  max-width: 46ch;
}
.rg-confirm__email {
  display: inline-block;
  font-weight: 600;
  color: var(--brand-navy-800);
  background: var(--brand-navy-50);
  padding: 4px 10px;
  border-radius: var(--rg-r-sm);
  margin: 4px 2px 18px;
  font-size: 14.5px;
}

.rg-confirm__steps {
  list-style: none;
  padding: 18px 20px;
  margin: 22px auto 22px;
  max-width: 460px;
  display: grid;
  gap: 14px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--rg-bg-sunken);
  border-radius: var(--rg-r-xl);
}
.rg-confirm__steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13.5px;
  color: var(--rg-fg-2);
  line-height: 1.5;
}
.rg-confirm__steps li b {
  display: block;
  color: var(--rg-fg-1);
  font-weight: 600;
  margin-bottom: 1px;
}
.rg-confirm__step-num {
  width: 26px; height: 26px;
  border-radius: var(--rg-r-full);
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--brand-navy-800);
  font-size: 12.5px;
  font-weight: 700;
  display: grid; place-items: center;
  flex: none;
}

.rg-confirm__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  font-size: 13.5px;
  color: var(--rg-fg-3);
}
.rg-confirm__resend,
.rg-confirm__edit {
  background: none;
  border: none;
  font-family: var(--rg-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-strong);
  text-decoration: none;
}
.rg-confirm__resend {
  color: var(--brand-navy);
}
.rg-confirm__resend:hover { color: var(--brand-navy-700); border-bottom-color: currentColor; }
.rg-confirm__resend:disabled { color: var(--rg-fg-4); cursor: default; border-bottom-color: transparent; }
.rg-confirm__sep { color: var(--rg-neutral-300); }
.rg-confirm__edit {
  color: var(--rg-fg-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rg-confirm__edit:hover { color: var(--brand-navy); border-bottom-color: currentColor; }

/* Topbar offset — auth-topbar is fixed-positioned, content needs space */
body.rg-body {
  padding-top: 0;
}
