/* ============================================================
   Registration modal — colourful & friendly
   Self-contained: works on the landing page and the login page.
   ============================================================ */

.vz-reg {
  --r-ink:      #1E1B4B;
  --r-ink-2:    #4A4769;
  --r-muted:    #6E6B8F;
  --r-line:     #ECE6DA;
  --r-cream:    #FFF8EE;
  --r-violet:   #6C5CE7;  --r-violet-dk: #5243C9;  --r-violet-lt: #EFECFF;
  --r-coral:    #FF6B6B;  --r-coral-dk:  #E84E4E;
  --r-sun:      #FFC53D;
  --r-mint:     #12B886;
  --r-sky:      #339AF0;
  --r-head: 'Nunito', 'Inter', system-ui, sans-serif;
  --r-body: 'Inter', system-ui, sans-serif;
  font-family: var(--r-body);
}
.modal-backdrop.show { background: #1E1B4B; opacity: .55; }

.vz-reg .modal-dialog { max-width: 1080px; }
.vz-reg .modal-content {
  border: 0 !important; border-radius: 28px !important; overflow: hidden;
  background: #fff; box-shadow: 0 30px 80px rgba(30,27,75,.35);
  margin: 0; padding: 0;
}
.vz-reg-grid { display: grid; grid-template-columns: 340px 1fr; min-height: 0; height: 100%; overflow: hidden; }
@media (max-width: 991px) { .vz-reg-grid { grid-template-columns: 1fr; } .vz-reg-side { display: none !important; } }

/* ── Left panel ─────────────────────────────────────────────── */
.vz-reg-side {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 40px 32px;
  background: var(--r-violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%23ffffff' fill-opacity='.14'/%3E%3C/svg%3E");
  color: #fff;
}
.vz-reg-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.vz-reg-shape-1 { width: 220px; height: 220px; background: var(--r-sun); bottom: -80px; right: -70px; opacity: .95; }
.vz-reg-shape-2 { width: 90px; height: 90px; border: 14px solid rgba(255,255,255,.18); top: -24px; right: 28px; }

.vz-reg-badge {
  position: relative; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vz-reg-side-title {
  position: relative; font-family: var(--r-head); font-weight: 900;
  font-size: 1.9rem; line-height: 1.15; color: #fff; margin: 22px 0 12px;
}
.vz-reg-side-text { position: relative; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 28px; }
.vz-reg-perks { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.vz-reg-perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.vz-reg-perk-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; font-size: .9rem;
}
.p-sun   { color: #B07A00; }
.p-mint  { color: var(--r-mint); }
.p-coral { color: var(--r-coral-dk); }
.p-sky   { color: var(--r-sky); }

/* ── Right panel ────────────────────────────────────────────── */
.vz-reg-main { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 3.5rem); }
.vz-reg-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 30px 36px 18px; border-bottom: 2px solid var(--r-line);
}
.vz-reg-title { font-family: var(--r-head); font-weight: 900; font-size: 1.75rem; color: var(--r-ink); margin: 0 0 4px; }
.vz-reg-sub { margin: 0; font-size: .88rem; color: var(--r-muted); }
.vz-req { color: var(--r-coral-dk); }
.vz-reg-close {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px;
  border: 2px solid var(--r-line); background: #fff; color: var(--r-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: background .18s, border-color .18s, transform .18s;
}
.vz-reg-close:hover { background: var(--r-cream); border-color: var(--r-ink); transform: rotate(90deg); }
.vz-reg-close:focus-visible { outline: 3px solid var(--r-sun); outline-offset: 2px; }

.vz-reg-form { padding: 24px 36px 30px; overflow-y: auto; }
@media (max-width: 575px) {
  .vz-reg-head { padding: 22px 20px 14px; }
  .vz-reg-form { padding: 18px 20px 24px; }
  .vz-reg-title { font-size: 1.4rem; }
}

.vz-reg-step { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.vz-reg-step legend {
  float: none; width: auto;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--r-head); font-weight: 900; font-size: 1.15rem; color: var(--r-ink);
  margin-bottom: 14px; padding: 0;
}
.vz-reg-num {
  width: 30px; height: 30px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem;
}
.n-violet { background: var(--r-violet); }
.n-coral  { background: var(--r-coral); }

.vz-reg-label { display: block; font-size: .84rem; font-weight: 700; color: var(--r-ink); margin-bottom: 6px; }
.vz-reg-field { position: relative; }
.vz-reg-field > i {
  position: absolute; top: 50%; inset-inline-start: 15px; transform: translateY(-50%);
  color: #A9A6BF; font-size: .9rem; pointer-events: none; transition: color .18s;
}
.vz-reg-field input {
  width: 100%; height: 48px;
  padding: 0 16px; padding-inline-start: 42px;
  border: 2px solid var(--r-line); border-radius: 14px;
  background: var(--r-cream); color: var(--r-ink); font-size: .95rem;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.vz-reg-field input::placeholder { color: #A9A6BF; }
.vz-reg-field input:focus {
  outline: none; border-color: var(--r-violet); background: #fff;
  box-shadow: 0 0 0 4px var(--r-violet-lt);
}
.vz-reg-field:focus-within > i { color: var(--r-violet); }
.vz-reg-field input:user-invalid { border-color: var(--r-coral); background: #FFF5F5; }

/* Trial toggle card */
.vz-reg-trial {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 16px 18px; margin-bottom: 26px;
  border: 2px dashed var(--r-line); border-radius: 18px; background: #fff;
  transition: border-color .18s, background .18s;
}
.vz-reg-trial input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vz-reg-trial-box {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  border: 2px solid #CFCBE0; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; font-size: .75rem; transition: all .18s;
}
.vz-reg-trial-text { flex: 1; min-width: 0; }
.vz-reg-trial-text strong { display: block; color: var(--r-ink); font-size: .95rem; }
.vz-reg-trial-text small { color: var(--r-muted); }
.vz-reg-trial-tag {
  background: #DDF7EC; color: #0B7C5B; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px;
}
.vz-reg-trial:hover { border-color: var(--r-mint); }
.vz-reg-trial:has(input:checked) { border-style: solid; border-color: var(--r-mint); background: #F2FCF8; }
.vz-reg-trial input:checked + .vz-reg-trial-box { background: var(--r-mint); border-color: var(--r-mint); color: #fff; }
.vz-reg-trial input:focus-visible + .vz-reg-trial-box { outline: 3px solid var(--r-sun); outline-offset: 2px; }

/* Actions */
.vz-reg-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.vz-reg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 130px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.vz-reg-btn:focus-visible { outline: 3px solid var(--r-sun); outline-offset: 2px; }
.vz-reg-btn-ghost { background: #fff; color: var(--r-ink); border-color: var(--r-line); }
.vz-reg-btn-ghost:hover { border-color: var(--r-ink); }
.vz-reg-btn-primary { position: relative; background: var(--r-coral); color: #fff; box-shadow: 0 5px 0 var(--r-coral-dk); }
.vz-reg-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--r-coral-dk); }
.vz-reg-btn-primary:disabled { cursor: wait; transform: none; box-shadow: 0 3px 0 var(--r-coral-dk); opacity: .9; }
@media (max-width: 575px) { .vz-reg-actions .vz-reg-btn { flex: 1 1 0; min-width: 0; } }

.vz-reg-spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: vz-reg-spin .7s linear infinite;
}
.vz-reg-btn-primary.is-loading .vz-reg-btn-label { visibility: hidden; }
.vz-reg-btn-primary.is-loading .vz-reg-spinner { display: block; position: absolute; }
@keyframes vz-reg-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .vz-reg * { transition: none !important; animation-duration: 1.5s !important; }
}

/* Host pages style bare label/small elements; pin ours down. */
.vz-reg .vz-reg-trial { margin: 0 0 26px; font-size: 1rem; }
.vz-reg .vz-reg-trial-text small { display: block; font-size: .85rem; margin-top: 2px; }
.vz-reg .vz-reg-label { margin: 0 0 6px; font-size: .84rem; }
.vz-reg-btn-label { display: inline-flex; align-items: center; gap: 8px; }
