/* landingv2 auth shell — light/dark via data-theme tokens from styles.css */

html:has(body.lv-auth-body) {
  font-size: 16px !important;
  overflow: hidden;
}

.lv-auth-body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 16px !important;
  line-height: 1.45;
  overflow: hidden;
}

.lv-auth-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 11, 18, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lv-auth-loader.is-visible {
  display: flex;
}

.lv-auth-loader__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 11rem;
  padding: 1.35rem 1.5rem 1.2rem;
  border-radius: 1rem;
  background: var(--elevated, #fff);
  box-shadow: 0 18px 40px rgba(12, 11, 18, 0.28);
  text-align: center;
}

[data-theme="dark"] .lv-auth-loader__panel {
  background: #17151f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lv-auth-loader__icon {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
  color: #6b46ff;
  animation: lvAuthSpin 0.75s linear infinite;
}

[data-theme="dark"] .lv-auth-loader__icon {
  color: #a78bfa;
}

.lv-auth-loader__message {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink, #111);
  letter-spacing: 0.01em;
}

[data-theme="dark"] .lv-auth-loader__message {
  color: #f1f5f9;
}

@keyframes lvAuthSpin {
  to { transform: rotate(360deg); }
}

.lv-auth-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
}

.lv-auth-shell {
  display: grid;
  /* Form 60% | Aesthetic 40% */
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--elevated);
}

/* Form column — LEFT (60%) */
.lv-auth-form-panel {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: clamp(24px, 3.5vh, 48px) clamp(56px, 9vw, 140px) 32px;
  background: var(--elevated);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: none;
}

/* Aesthetic column — RIGHT (40%); curve lives on the blue panel */
.lv-auth-aesthetic {
  order: 2;
}

.lv-auth-form-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Default measure for every auth form. Shells narrow or widen this to suit
 * their own field density; without a cap the fields stretch the whole column. */
.lv-auth-form-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.lv-auth-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
}

.lv-auth-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.lv-auth-form-panel h2 {
  margin: 0 0 6px;
  font-family: "Gambarino", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 28px) !important;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
}

.lv-auth-form-panel .lv-auth-subhead {
  margin: 0 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 15px !important;
  font-weight: 500;
}

/* Progress — each step is icon + label, lines sit between circles */
.lv-auth-progress {
  margin-bottom: 18px;
}

/* Steps size to their label; the connectors take every pixel left over, so the
 * lines read as a track between stages instead of two short dashes. */
.lv-auth-progress-bar {
  display: grid;
  grid-template-columns: auto minmax(32px, 1fr) auto minmax(32px, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.lv-auth-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.lv-auth-progress-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  background: var(--elevated);
  flex-shrink: 0;
}

.lv-auth-progress-circle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.lv-auth-progress-circle.is-muted {
  border-color: var(--line);
  opacity: 0.55;
}

.lv-auth-progress-circle.is-done {
  border-color: var(--success, #16a34a);
  background: var(--success, #16a34a);
  color: #fff;
}

.lv-auth-progress-circle.is-done svg {
  width: 20px;
  height: 20px;
}

.lv-auth-progress-line {
  height: 3px;
  margin-top: 20px; /* vertically center with 44px circles */
  background: var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 99px;
  align-self: start;
}

.lv-auth-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.45s var(--ease, ease);
}

.lv-auth-progress-label {
  margin: 8px 0 0;
  font-size: 12px !important;
  line-height: 1.35;
  color: var(--muted);
  max-width: 8em;
}

.lv-auth-progress-label strong {
  display: block;
  font-size: 13px !important;
  font-weight: 700;
  color: var(--ink);
}

/* Social */
.lv-auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.lv-auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  font-size: 14px !important;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lv-auth-social-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
  color: var(--ink);
  text-decoration: none;
}

.lv-auth-social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.lv-auth-fb-create {
  display: flex;
  margin-bottom: 12px;
}

.lv-auth-fb-create a {
  width: 100%;
  font-size: 14px !important;
}

.lv-auth-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lv-auth-or::before,
.lv-auth-or::after {
  content: "";
  height: 1px;
  background: var(--line);
}

/* Fields — floating label + left icon */
.lv-auth-form .form-group,
.lv-auth-form .lv-field {
  margin: 0 0 14px !important;
  position: relative;
  width: 100%;
}

.lv-auth-form .form-group.form-group-row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px !important;
}

.lv-auth-form .form-group.form-group-row > .lv-field {
  margin-bottom: 0 !important;
}

.lv-field-icon {
  position: absolute;
  left: 14px;
  top: 24px; /* center against 48px input */
  transform: translateY(-50%);
  z-index: 2;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.lv-field-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lv-auth-form .new-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: var(--input-bg) !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  padding: 12px 14px 12px 44px;
  box-shadow: none !important;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lv-auth-form .lv-field--password .new-input {
  padding-right: 44px;
}

.lv-auth-form .new-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16) !important;
}

.lv-auth-form .new-input::placeholder {
  color: transparent;
}

.lv-auth-form .new-label,
.lv-auth-modal .new-label,
.modal .lv-field > .new-label {
  position: absolute;
  left: 44px;
  top: 24px;
  transform: translateY(-50%);
  margin: 0 !important;
  padding: 0;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  transition: top 0.18s ease, left 0.18s ease, font-size 0.18s ease, color 0.18s ease, background 0.18s ease, padding 0.18s ease;
  white-space: nowrap;
  max-width: calc(100% - 56px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Float when focused, filled, autofilled, or JS-synced (.is-floated) */
.lv-auth-form .new-input:focus + .new-label,
.lv-auth-form .new-input:not(:placeholder-shown) + .new-label,
.lv-auth-form .new-input.is-floated + .new-label,
.lv-auth-form .new-input:-webkit-autofill + .new-label,
.lv-auth-form .lv-field:has(.new-input:focus) > .new-label,
.lv-auth-form .lv-field:has(.new-input:not(:placeholder-shown)) > .new-label,
.lv-auth-form .lv-field:has(.new-input.is-floated) > .new-label,
.lv-auth-form .lv-field:has(.new-input:-webkit-autofill) > .new-label,
.lv-auth-modal .new-input:focus + .new-label,
.lv-auth-modal .new-input:not(:placeholder-shown) + .new-label,
.lv-auth-modal .new-input.is-floated + .new-label,
.lv-auth-modal .lv-field:has(.new-input:focus) > .new-label,
.lv-auth-modal .lv-field:has(.new-input:not(:placeholder-shown)) > .new-label,
.modal .lv-field:has(.new-input:focus) > .new-label,
.modal .lv-field:has(.new-input:not(:placeholder-shown)) > .new-label,
.modal .new-input:focus + .new-label,
.modal .new-input:not(:placeholder-shown) + .new-label,
.modal .new-input.is-floated + .new-label {
  top: 0 !important;
  left: 38px;
  transform: translateY(-50%);
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  padding: 0 6px;
  background: var(--input-bg, var(--elevated)) !important;
  max-width: calc(100% - 48px);
}

.lv-auth-modal .lv-field,
.modal .lv-field {
  margin: 0 0 14px !important;
  position: relative;
  width: 100%;
}

.lv-auth-modal .new-input,
.modal .lv-field > .new-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: var(--input-bg) !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  padding: 14px 14px 14px 44px !important;
  box-shadow: none !important;
  outline: none;
}

.lv-auth-modal .new-input:focus,
.modal .lv-field > .new-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16) !important;
}

.lv-auth-modal .new-input::placeholder,
.modal .lv-field > .new-input::placeholder {
  color: transparent;
}

.lv-auth-form .input-color-green {
  border-color: var(--success) !important;
}

.lv-auth-form .input-color-red {
  border-color: var(--danger) !important;
}

.lv-auth-form .help-block,
.lv-auth-form #validation-suggestion-name,
.lv-auth-form #validation-suggestion-email,
.lv-auth-form #validation-suggestion-phone,
.lv-auth-form #validation-suggestion-password,
.lv-auth-form #suggestion {
  margin: 6px 2px 0;
  font-size: 0.78rem;
  color: var(--danger);
}

.lv-auth-form .password-show-hide-feature {
  position: absolute;
  right: 10px;
  top: 24px;
  transform: translateY(-50%);
  z-index: 3;
}

.lv-auth-form .lv-pass-toggle {
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  /* Explicit colour, not inherited — the icons are stroke="currentColor" and
     would vanish against the input if colour resolved to the field background. */
  color: var(--muted);
  width: 28px;
  height: 28px;
  line-height: 0;
  display: grid;
  place-items: center;
}

.lv-auth-form .lv-pass-toggle:hover {
  color: var(--ink);
}

.lv-auth-form .lv-pass-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.lv-auth-form .lv-pass-icon[hidden] {
  display: none !important;
}

/* Choices.js — dark/light via CSS vars */
.lv-auth-form .lv-field--select select#phonecode {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.lv-auth-form .choices {
  margin-bottom: 0;
  width: 100%;
}

.lv-auth-form .choices__inner {
  min-height: 48px !important;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: var(--input-bg) !important;
  color: var(--ink) !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  display: flex;
  align-items: center;
}

.lv-auth-form .choices__inner:focus,
.lv-auth-form .is-focused .choices__inner,
.lv-auth-form .is-open .choices__inner {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.lv-auth-form .choices.is-valid .choices__inner {
  border-color: var(--success) !important;
}

.lv-auth-form .choices__list--single {
  padding: 0;
}

.lv-auth-form .choices__list--single .choices__item {
  color: var(--ink);
}

.lv-auth-form .choices__placeholder {
  color: var(--muted);
  opacity: 1;
}

/* Choices.js theme tokens — library defaults to #fff dropdown / light highlight,
 * which breaks dark mode (native search input follows color-scheme; list stays white). */
.lv-auth-body,
.lv-auth-form {
  --choices-bg-color: var(--input-bg);
  --choices-bg-color-dropdown: var(--elevated);
  --choices-bg-color-disabled: var(--page);
  --choices-text-color: var(--ink);
  --choices-keyline-color: var(--line);
  --choices-highlighted-color: rgba(var(--accent-rgb), 0.14);
  --choices-placeholder-opacity: 0.6;
}

.lv-auth-form .choices__list--dropdown,
.lv-auth-form .choices__list[aria-expanded] {
  border: 1px solid var(--line) !important;
  background: var(--elevated) !important;
  background-color: var(--elevated) !important;
  border-radius: 12px !important;
  z-index: 40;
  box-shadow: 0 16px 40px var(--shadow-lg);
  color: var(--ink) !important;
}

.lv-auth-form .choices__list--dropdown .choices__list,
.lv-auth-form .choices__list[aria-expanded] .choices__list {
  background: var(--elevated) !important;
  background-color: var(--elevated) !important;
}

.lv-auth-form .choices__list--dropdown .choices__item,
.lv-auth-form .choices__list[aria-expanded] .choices__item {
  color: var(--ink) !important;
  padding: 10px 12px;
  background-color: transparent;
}

.lv-auth-form .choices__list--dropdown .choices__item--selectable.is-highlighted,
.lv-auth-form .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.lv-auth-form .choices__list--dropdown .choices__item--selectable.is-selected,
.lv-auth-form .choices__list[aria-expanded] .choices__item--selectable.is-selected {
  background: rgba(var(--accent-rgb), 0.14) !important;
  background-color: rgba(var(--accent-rgb), 0.14) !important;
  color: var(--ink) !important;
}

.lv-auth-form .choices__input {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}

/* Search field inside the open city/code dropdown */
.lv-auth-form .choices[data-type*="select-one"] .choices__input {
  background: var(--input-bg) !important;
  background-color: var(--input-bg) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
}

.lv-auth-form .choices[data-type*="select-one"] .choices__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.lv-auth-form .choices[data-type*="select-one"]::after {
  border-color: var(--muted) transparent transparent;
}

.lv-auth-form .choices[data-type*="select-one"].is-open::after {
  border-color: transparent transparent var(--muted);
}

.lv-auth-form .choices__list--dropdown .flag-icon,
.lv-auth-form .choices__list--single .flag-icon,
.lv-auth-form .choices__item .flag-icon {
  margin-right: 6px;
  width: 1.2em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}

.lv-auth-form .validation-tooltip {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px var(--shadow-lg);
}

.lv-auth-form .validation-tooltip h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.lv-auth-form .validation-tooltip .valid {
  color: var(--success);
}

.lv-auth-form .validation-tooltip .invalid {
  color: var(--muted);
}

.lv-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.lv-auth-terms input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.lv-auth-terms a {
  color: var(--accent);
  text-decoration: underline;
}

.lv-auth-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 16px !important;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lv-auth-submit:hover:not(:disabled) {
  opacity: 0.94;
  transform: translateY(-1px);
}

.lv-auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lv-auth-redirect {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px !important;
  color: var(--muted);
}

.lv-auth-redirect a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.lv-auth-redirect a:hover {
  text-decoration: underline;
}

.lv-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.lv-auth-back:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--ink);
  text-decoration: none;
}

/* Aesthetic column visuals — RIGHT (40%) */
.lv-auth-aesthetic {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.14), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.35), transparent 45%),
    linear-gradient(165deg, #5b21ff 0%, #6b46ff 42%, #3b1d8f 100%);
  color: #fff !important;
  padding: clamp(28px, 4.5vh, 52px) clamp(24px, 3vw, 40px) clamp(28px, 4.5vh, 52px) clamp(36px, 4vw, 56px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Large curve on the blue panel (left edge against white form) */
  border-radius: 5rem 0 0 5rem;
  z-index: 2;
  box-shadow: -18px 0 48px rgba(22, 8, 64, 0.22);
}

.lv-auth-aesthetic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.1px, transparent 1.1px);
  background-size: 16px 16px;
  opacity: 0.4;
  pointer-events: none;
}

html[data-theme="dark"] .lv-auth-aesthetic {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.4), transparent 45%),
    linear-gradient(165deg, #4c1d95 0%, #6b46ff 45%, #2e1065 100%);
}

.lv-auth-aesthetic-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  color: #fff;
  min-width: 0;
}

.lv-auth-aesthetic-title,
.lv-auth-aesthetic h1,
.lv-auth-aesthetic h2,
.lv-auth-aesthetic h3,
.lv-auth-aesthetic p,
.lv-auth-aesthetic li {
  color: #fff !important;
}

.lv-auth-aesthetic-title {
  margin: 0 0 22px;
  font-family: "Gambarino", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.lv-auth-accent-word {
  color: #facc15 !important;
}

.lv-auth-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Glassmorphism 3D-effect cards */
.lv-auth-feature-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  min-width: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.1) 48%,
    rgba(167, 139, 250, 0.12) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 14px 32px rgba(22, 8, 64, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(46, 16, 101, 0.15) inset;
  transform: translateZ(0);
}

.lv-auth-feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 52%),
    radial-gradient(circle at 70% 78%, rgba(91, 33, 255, 0.45), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.28), rgba(91, 33, 255, 0.4));
  box-shadow:
    0 12px 20px rgba(22, 8, 64, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.4) inset,
    0 -2px 6px rgba(46, 16, 101, 0.25) inset;
}

.lv-auth-feature-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.lv-auth-feature-icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.32));
  position: relative;
  z-index: 1;
  mix-blend-mode: lighten;
}

.lv-auth-feature-copy h3 {
  margin: 0 0 4px;
  font-size: 15px !important;
  font-weight: 700;
  color: #fff !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lv-auth-feature-copy p {
  margin: 0;
  font-size: 13px !important;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Register: form LEFT / aesthetic RIGHT (always) */
.lv-auth-shell--register {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.lv-auth-shell--register .lv-auth-form-panel {
  order: 1;
  /* Extra right pad so fields clear the aesthetic curve */
  padding: clamp(20px, 3vh, 40px) clamp(36px, 5vw, 88px) clamp(24px, 3vh, 40px) clamp(28px, 4vw, 72px);
}

/* Widest of the set — carries the step rail and the two social buttons side by side. */
.lv-auth-shell--register .lv-auth-form-inner {
  max-width: 600px;
}

.lv-auth-shell--register .lv-auth-aesthetic {
  order: 2;
  border-radius: 4rem 0 0 4rem;
  box-shadow: -18px 0 48px rgba(22, 8, 64, 0.22);
  padding: clamp(28px, 4.5vh, 56px) clamp(28px, 3.5vw, 48px) clamp(28px, 4.5vh, 56px) clamp(36px, 4vw, 56px);
  align-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 38%),
    radial-gradient(circle at 85% 88%, rgba(167, 139, 250, 0.32), transparent 42%),
    linear-gradient(165deg, #4c1dcf 0%, #5b21ff 38%, #3b1bb1 100%);
  perspective: 900px;
}

.lv-auth-shell--register .lv-auth-form-panel h2 {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(24px, 2.4vw, 30px) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}

.lv-auth-shell--register .lv-auth-subhead {
  font-size: 15px !important;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
}

.lv-auth-shell--register .lv-auth-logo {
  margin-bottom: 18px;
}

.lv-auth-shell--register .lv-auth-logo img {
  height: 44px;
}

.lv-auth-shell--register .lv-auth-progress {
  margin-bottom: 20px;
}

.lv-auth-shell--register .lv-auth-progress-bar {
  max-width: 540px;
  column-gap: 12px;
}

.lv-auth-shell--register .lv-auth-progress-circle {
  width: 44px;
  height: 44px;
}

.lv-auth-shell--register .lv-auth-progress-circle img {
  width: 22px;
  height: 22px;
}

.lv-auth-shell--register .lv-auth-progress-circle.is-done svg {
  width: 20px;
  height: 20px;
}

.lv-auth-shell--register .lv-auth-progress-line {
  margin-top: 20px;
  height: 3px;
}

.lv-auth-shell--register .lv-auth-progress-label {
  margin-top: 8px;
  font-size: 12px !important;
}

.lv-auth-shell--register .lv-auth-progress-label strong {
  font-size: 13px !important;
}

.lv-auth-shell--register .lv-auth-social {
  gap: 12px;
  margin-bottom: 12px;
}

.lv-auth-shell--register .lv-auth-social-btn {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px !important;
  border-radius: 12px;
}

.lv-auth-shell--register .lv-auth-social-btn img {
  width: 20px;
  height: 20px;
}

.lv-auth-shell--register .lv-auth-fb-create {
  display: flex;
  margin-bottom: 12px;
}

.lv-auth-shell--register .lv-auth-or {
  margin: 4px 0 18px;
  font-size: 0.8rem;
}

.lv-auth-shell--register .lv-auth-form .form-group,
.lv-auth-shell--register .lv-auth-form .lv-field {
  margin-bottom: 14px !important;
}

.lv-auth-shell--register .lv-auth-form .form-group.form-group-row {
  margin-bottom: 14px !important;
  gap: 12px;
}

.lv-auth-shell--register .lv-auth-form .new-input,
.lv-auth-shell--register .lv-auth-form .choices__inner {
  min-height: 52px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  padding-top: 14px;
  padding-bottom: 14px;
}

.lv-auth-shell--register .lv-auth-form .new-label {
  font-size: 15px !important;
}

.lv-auth-shell--register .lv-field-icon,
.lv-auth-shell--register .lv-auth-form .new-label,
.lv-auth-shell--register .lv-auth-form .password-show-hide-feature {
  top: 26px;
}

.lv-auth-shell--register .lv-auth-terms {
  margin: 4px 0 16px;
  font-size: 0.875rem;
}

.lv-auth-shell--register .lv-auth-submit {
  min-height: 52px;
  font-size: 16px !important;
  border-radius: 12px;
}

.lv-auth-shell--register .lv-auth-redirect {
  margin-top: 16px;
  font-size: 15px !important;
}

.lv-auth-aesthetic--register .lv-auth-aesthetic-inner {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  justify-content: center;
  transform-style: preserve-3d;
}

.lv-auth-aesthetic--register .lv-auth-aesthetic-title {
  margin: 0 0 28px;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(26px, 2.6vw, 34px) !important;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(22, 8, 64, 0.35);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lv-auth-aesthetic--register .lv-auth-accent-word {
  display: block;
  margin-top: 2px;
  color: #facc15 !important;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(250, 204, 21, 0.35);
}

.lv-auth-aesthetic--register .lv-auth-feature-list {
  gap: 14px;
  flex: 0 0 auto;
}

/*
 * 3D glassmorphism cards
 * — frosted blur, specular top/left edge, soft float shadow
 */
.lv-auth-aesthetic--register .lv-auth-feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px 18px 16px;
  border-radius: 20px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.55);
  border-left-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  box-shadow:
    0 20px 40px rgba(18, 6, 56, 0.38),
    0 8px 16px rgba(18, 6, 56, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1.5px 0 rgba(255, 255, 255, 0.55) inset,
    1.5px 0 0 rgba(255, 255, 255, 0.28) inset,
    0 -10px 24px rgba(46, 16, 101, 0.22) inset;
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

/* Specular sheen (light hitting glass) */
.lv-auth-aesthetic--register .lv-auth-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.12) 28%,
      rgba(255, 255, 255, 0.02) 48%,
      transparent 62%
    );
  pointer-events: none;
  z-index: 0;
}

/* Soft inner frost layer */
.lv-auth-aesthetic--register .lv-auth-feature-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(24px - 1px);
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(255, 255, 255, 0.22), transparent 45%),
    radial-gradient(90% 70% at 100% 100%, rgba(91, 33, 255, 0.18), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.lv-auth-aesthetic--register .lv-auth-feature-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 26px 48px rgba(18, 6, 56, 0.42),
    0 10px 20px rgba(18, 6, 56, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1.5px 0 rgba(255, 255, 255, 0.65) inset,
    1.5px 0 0 rgba(255, 255, 255, 0.32) inset,
    0 -10px 24px rgba(46, 16, 101, 0.2) inset;
}

.lv-auth-aesthetic--register .lv-auth-feature-icon,
.lv-auth-aesthetic--register .lv-auth-feature-copy {
  position: relative;
  z-index: 1;
}

.lv-auth-aesthetic--register .lv-auth-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 10px 14px rgba(12, 4, 40, 0.48));
}

.lv-auth-aesthetic--register .lv-auth-feature-icon::after {
  display: none;
}

.lv-auth-aesthetic--register .lv-auth-feature-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.lv-auth-aesthetic--register .lv-auth-feature-icon--secure {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 8px 12px rgba(12, 4, 40, 0.45));
}

.lv-auth-aesthetic--register .lv-auth-feature-icon--secure img {
  width: 52px;
  height: 52px;
}

.lv-auth-aesthetic--register .lv-auth-feature-card--secure {
  grid-template-columns: 56px 1fr;
  padding: 16px 20px 16px 14px;
  border-radius: 18px;
}

.lv-auth-aesthetic--register .lv-auth-feature-card--secure::after {
  border-radius: calc(18px - 1px);
}

.lv-auth-aesthetic--register .lv-auth-feature-copy h3 {
  margin: 0 0 6px;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.25;
  color: #fff !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lv-auth-aesthetic--register .lv-auth-feature-copy p {
  margin: 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lv-auth-aesthetic--register .lv-auth-feature-card--secure .lv-auth-feature-copy h3 {
  font-size: 17px !important;
  margin-bottom: 4px;
}

.lv-auth-aesthetic--register .lv-auth-feature-card--secure .lv-auth-feature-copy p {
  font-size: 14px !important;
}

/* Verify page */
.lv-auth-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700;
}

.lv-auth-pill-badge svg {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lv-auth-verify-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.lv-auth-verify-points li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  color: #fff !important;
}

/* The glyph is absolutely centred rather than flex/grid centred: the chip is a
 * fixed square, so translate(-50%,-50%) is exact and immune to inline baseline
 * gaps, flex-shrink, or an inherited line-height reintroducing an offset. */
.lv-auth-verify-point-icon {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  display: block;
  line-height: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.lv-auth-verify-point-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lv-auth-verify-points strong {
  display: block;
  font-size: 14px !important;
  font-weight: 700;
  color: #fff !important;
}

.lv-auth-verify-points span {
  display: block;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Verify shell: form LEFT / aesthetic RIGHT */
.lv-auth-shell--verify {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.lv-auth-shell--verify .lv-auth-form-panel {
  order: 1;
  padding: clamp(24px, 3.5vh, 48px) clamp(24px, 4vw, 64px) 32px;
}

/* OTP boxes plus a short line of copy — narrower than the data-entry forms. */
.lv-auth-shell--verify .lv-auth-form-inner {
  max-width: 470px;
}

.lv-auth-shell--verify .lv-auth-form-panel h2 {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(22px, 2.2vw, 28px) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lv-auth-shell--verify .lv-auth-subhead {
  font-size: 14px !important;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.lv-auth-shell--verify .lv-auth-logo {
  margin-bottom: 16px;
}

.lv-auth-shell--verify .lv-auth-logo img {
  height: 40px;
}

.lv-auth-shell--verify .lv-auth-form-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.lv-auth-shell--verify .lv-auth-form-icon svg {
  width: 28px;
  height: 28px;
}

.lv-auth-shell--verify .lv-auth-aesthetic {
  order: 2;
  border-radius: 5rem 0 0 5rem;
  box-shadow: -18px 0 48px rgba(22, 8, 64, 0.22);
  padding: clamp(32px, 5vh, 56px) clamp(28px, 3.5vw, 48px) clamp(32px, 5vh, 56px) clamp(36px, 4vw, 56px);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(circle at 85% 88%, rgba(167, 139, 250, 0.32), transparent 42%),
    linear-gradient(165deg, #4c1dcf 0%, #5b21ff 38%, #3b1bb1 100%);
}

.lv-auth-aesthetic--verify .lv-auth-story-inner {
  max-width: 440px;
  height: 100%;
  justify-content: center;
}

.lv-auth-aesthetic--verify .lv-auth-pill-badge {
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 18px rgba(18, 6, 56, 0.2);
}

.lv-auth-aesthetic--verify .lv-auth-story-title {
  margin: 0 0 12px !important;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(26px, 2.5vw, 34px) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lv-auth-aesthetic--verify .lv-auth-story-lead {
  margin: 0 0 22px;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 15px !important;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9) !important;
}

.lv-auth-aesthetic--verify .lv-auth-verify-points {
  margin: 0 0 20px;
  gap: 14px;
}

.lv-auth-aesthetic--verify .lv-auth-verify-points li {
  grid-template-columns: 52px 1fr;
  gap: 16px;
}

.lv-auth-aesthetic--verify .lv-auth-verify-point-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 16px rgba(18, 6, 56, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.lv-auth-aesthetic--verify .lv-auth-verify-point-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}

.lv-auth-aesthetic--verify .lv-auth-verify-points strong {
  font-size: 15px !important;
  margin-bottom: 2px;
}

.lv-auth-aesthetic--verify .lv-auth-verify-points span {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.lv-auth-aesthetic--verify .lv-auth-story-hero {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.lv-auth-aesthetic--verify .lv-auth-story-hero img {
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 18px 36px rgba(12, 4, 40, 0.45));
}

.lv-auth-email-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 4px 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--page);
  border: 1px solid var(--line);
}

.lv-auth-email-chip-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.lv-auth-email-chip-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.lv-auth-verify .display-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lv-auth-verify .input-box {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 14px !important;
  font-weight: 600;
  outline: none;
}

/* Edit mode — real textbox, not a transparent inline field */
.lv-auth-email-chip.is-editing {
  background: transparent;
  border-color: transparent;
  padding: 0;
  gap: 10px;
}

.lv-auth-email-chip.is-editing .lv-auth-email-chip-icon {
  display: none;
}

.lv-auth-email-chip.is-editing .input-box {
  display: block;
  flex: 1;
  min-height: 48px;
  padding: 12px 14px !important;
  border: 1px solid var(--accent) !important;
  border-radius: 12px !important;
  background: var(--input-bg, var(--elevated)) !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
  outline: none;
}

.lv-auth-email-chip.is-editing .input-box:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
}

.lv-auth-email-chip.is-editing .lv-auth-email-change {
  padding: 0 4px;
}

.lv-auth-email-change {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px !important;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.lv-auth-verify .passcode-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

.lv-auth-verify .codeBox {
  width: 56px;
  height: 58px;
  text-align: center;
  font-size: 1.35rem !important;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lv-auth-verify .codeBox:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.lv-auth-otp-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px !important;
  color: var(--accent);
}

.lv-auth-otp-hint svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.lv-auth-otp-hint strong {
  color: var(--accent);
  font-weight: 700;
}

.lv-auth-shell--verify .lv-auth-email-chip {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.18);
}

.lv-auth-shell--verify .lv-auth-email-chip-icon {
  color: var(--accent);
}

.lv-auth-shell--verify .lv-auth-verify-footer {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--page);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.lv-auth-verify .error_message {
  min-height: 20px;
  margin: 0 0 10px;
  text-align: center;
  color: #dc2626;
  font-size: 13px !important;
  font-weight: 600;
}

.lv-auth-mailbox-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--ink);
  font-size: 15px !important;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
}

.lv-auth-mailbox-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.lv-auth-mailbox-btn #mailbox-text {
  flex: 1;
  text-align: left;
}

.lv-auth-mailbox-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  margin-left: auto;
}

.lv-auth-verify-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lv-auth-resend-line {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px !important;
  color: var(--muted);
}

.lv-auth-resend-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px !important;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.lv-auth-resend-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lv-auth-resend-timer {
  color: var(--accent);
  font-weight: 700;
}

.lv-auth-verify-footer-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.lv-auth-need-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px !important;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.lv-auth-need-help svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.mailbox-container {
  margin: 0 0 4px;
}

/* Second registration (website details) */
.lv-auth-hello {
  margin: 0 0 12px;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 16px !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important;
}

.lv-auth-section-label {
  margin: 8px 0 12px;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.lv-field-hint {
  margin: 6px 0 0;
  font-size: 12px !important;
  line-height: 1.4;
  color: var(--muted);
}

.lv-field-hint--callout {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  color: var(--ink-soft);
}

.lv-field--domain {
  position: relative;
}

.lv-field--domain .new-input {
  padding-right: 9.5rem !important;
}

.lv-auth-domain-suffix {
  position: absolute;
  top: 24px;
  right: 10px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 42%;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 12px !important;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.lv-field--select .lv-field-icon {
  top: 24px;
  z-index: 3;
}

/* Choices.js (register-style) inside icon fields */
.lv-field--select .choices {
  margin-bottom: 0;
}

.lv-field--select .choices__inner {
  padding-left: 42px !important;
  min-height: 48px !important;
}

.lv-field--select .choices__list--single {
  padding-top: 4px;
}

.lv-auth-form .select2-container {
  width: 100% !important;
}

.lv-auth-form .select2-container--default .select2-selection--single {
  min-height: 48px;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: var(--input-bg) !important;
  padding-left: 36px;
}

.lv-auth-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  padding-left: 8px !important;
  color: var(--ink) !important;
  font-size: 15px !important;
}

.lv-auth-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 10px;
}

.lv-auth-form .select2-container--default.select2-container--focus .select2-selection--single,
.lv-auth-form .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.select2-dropdown {
  border-color: var(--line) !important;
  background: var(--elevated) !important;
  color: var(--ink);
  border-radius: 12px !important;
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(var(--accent-rgb), 0.14) !important;
  color: var(--ink) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
}

.lv-auth-user-menu {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 5;
}

.lv-auth-form-panel {
  position: relative;
}

.lv-auth-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px !important;
  font-weight: 600;
  cursor: pointer;
}

.lv-auth-user-toggle svg {
  width: 14px;
  height: 14px;
}

.lv-auth-user-dropdown {
  right: 0;
  left: auto !important;
  min-width: 140px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.delete-success-msg {
  margin: 0 0 12px;
  text-align: center;
  color: var(--success, #16a34a);
  font-weight: 600;
}

/* Second reg: form LEFT (60%), aesthetic RIGHT (40%) */
.lv-auth-shell--second {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.lv-auth-shell--second .lv-auth-aesthetic {
  order: 2;
  border-radius: 5rem 0 0 5rem;
  box-shadow: -18px 0 48px rgba(22, 8, 64, 0.22);
  padding: clamp(32px, 5vh, 56px) clamp(28px, 3.5vw, 48px) clamp(32px, 5vh, 56px) clamp(36px, 4vw, 56px);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(circle at 85% 88%, rgba(167, 139, 250, 0.3), transparent 42%),
    linear-gradient(165deg, #4c1dcf 0%, #5b21ff 38%, #3b1bb1 100%);
}

.lv-auth-shell--second .lv-auth-form-panel {
  order: 1;
  align-items: center;
  padding: clamp(24px, 3.5vh, 48px) clamp(24px, 4vw, 64px) 40px;
}

/* Keep fields at a readable measure instead of stretching the whole 60% column */
/* `margin: auto` rather than `justify-content: center` on the panel: auto margins
 * centre short content (the FB page list, the import prompt) but collapse to 0
 * once the content is taller than the panel, so long forms still start at the top
 * and scroll instead of having their heads clipped. */
.lv-auth-shell--second .lv-auth-form-inner {
  width: 100%;
  max-width: 580px;
  margin: auto;
}

.lv-auth-shell--second .lv-auth-form-panel h2 {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(22px, 2.1vw, 26px) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lv-auth-shell--second .lv-auth-subhead {
  font-size: 14px !important;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
}

.lv-auth-aesthetic--second .lv-auth-story-inner {
  max-width: 440px;
  justify-content: center;
}

.lv-auth-aesthetic--second .lv-auth-story-title {
  margin: 0 0 12px !important;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(26px, 2.5vw, 34px) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lv-auth-aesthetic--second .lv-auth-accent-word {
  display: inline;
  color: #facc15 !important;
  font-weight: 700;
}

.lv-auth-shell--second .lv-auth-story-lead {
  margin: 0 0 18px;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 14.5px !important;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9) !important;
}

.lv-auth-shell--second .lv-auth-story-hero {
  margin: 4px 0 22px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.lv-auth-shell--second .lv-auth-story-hero img {
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 18px 36px rgba(12, 4, 40, 0.45));
}

.lv-auth-aesthetic--second .lv-auth-verify-points {
  margin: 0;
  gap: 16px;
}

.lv-auth-aesthetic--second .lv-auth-verify-points li {
  grid-template-columns: 54px 1fr;
  gap: 16px;
}

.lv-auth-aesthetic--second .lv-auth-verify-point-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 10px 20px rgba(18, 6, 56, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.lv-auth-aesthetic--second .lv-auth-verify-point-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.lv-auth-aesthetic--second .lv-auth-verify-points strong {
  display: block;
  font-size: 14px !important;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 2px;
}

.lv-auth-aesthetic--second .lv-auth-verify-points span {
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.lv-auth-shell--second .create-website-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lv-auth-domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.85fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 4px;
}

.lv-auth-domain-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--ink-soft);
}

.lv-auth-domain-tip-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
}

.lv-auth-domain-tip-icon svg {
  width: 15px;
  height: 15px;
}

.lv-auth-domain-tip p {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.45;
  color: inherit;
}

.lv-field--address .new-input {
  padding-right: 9.75rem !important;
}

.lv-auth-locate-btn {
  position: absolute;
  top: 24px;
  right: 8px;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.lv-auth-locate-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lv-auth-locate-btn:hover,
.lv-auth-locate-btn:focus {
  background: rgba(var(--accent-rgb), 0.1);
  outline: none;
}

.lv-map-status {
  color: var(--success, #16a34a) !important;
  font-weight: 600;
}

.lv-map-status.is-error {
  color: #dc2626 !important;
}

.lv-auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 18px;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.lv-auth-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.lv-auth-check a {
  color: var(--accent);
  text-decoration: underline;
}

.lv-map-modal .modal-dialog {
  width: min(720px, calc(100vw - 32px)) !important;
  max-width: 720px !important;
}

.lv-map-modal-lead {
  margin: 0 0 12px;
  font-size: 14px !important;
  color: #4b5563;
}

html[data-theme="dark"] .lv-map-modal-lead {
  color: #d1d5db;
}

.lv-map-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #e5e7eb;
}

.lv-map-canvas {
  width: 100%;
  height: min(420px, 55vh);
  min-height: 280px;
}

.lv-map-modal-coords {
  margin: 10px 0 0;
  font-size: 12px !important;
  font-weight: 600;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.lv-map-btn-secondary,
.lv-map-btn-primary {
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
}

.lv-map-btn-secondary {
  background: transparent !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}

.lv-map-btn-primary {
  background: var(--accent, #6b46ff) !important;
  border-color: var(--accent, #6b46ff) !important;
  color: #fff !important;
}

html[data-theme="dark"] .lv-map-btn-secondary {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #e5e7eb !important;
}

/* FB page select */
.lv-fb-page-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 4px;
}

.lv-fb-page-card {
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--ink);
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lv-fb-page-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-1px);
  color: var(--ink);
}

.lv-fb-page-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--input-bg);
}

.lv-fb-page-card span {
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.3;
}

.lv-fb-page-card svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.lv-fb-prefill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}

.lv-fb-prefill strong {
  font-size: 12px !important;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lv-fb-prefill span {
  font-size: 15px !important;
  font-weight: 600;
  color: var(--ink);
}

.lv-fb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.lv-auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 700;
  text-decoration: none !important;
}

.lv-auth-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.lv-map-container--inline {
  margin: 4px 0 0;
}

.lv-auth-phone-row {
  display: grid;
  grid-template-columns: minmax(100px, 34%) 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}

/* Grid cells own the row height — kill the per-child margins that skewed them */
.lv-auth-form .lv-auth-phone-row > .lv-field,
.lv-auth-phone-row .lv-auth-phone-chip {
  margin: 0 !important;
}

.lv-auth-phone-chip {
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
}

.lv-auth-phone-chip .input-box {
  min-height: 0;
}

/* No field icon in the code cell, so drop the icon gutter and centre the code */
.lv-auth-form .lv-auth-phone-code .new-input {
  height: 48px;
  padding: 0 14px;
  text-align: center;
  font-weight: 600;
  background: var(--page) !important;
}

.lv-auth-phone-code .choices,
.lv-auth-phone-code .choices__inner {
  min-height: 48px;
  height: 48px;
}

.lv-auth-phone-chip .input-box {
  display: block;
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0;
  min-height: 40px;
  color: var(--ink);
  font-size: 14px !important;
  font-weight: 600;
  padding: 0;
  outline: none;
}

/* Phone edit mode — match email verify textbox treatment */
.lv-auth-phone-row.is-editing .lv-auth-phone-chip {
  background: transparent;
  border-color: transparent;
  padding: 0;
}

.lv-auth-phone-row.is-editing .lv-auth-phone-chip .input-box {
  display: block;
  flex: 1;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--accent) !important;
  border-radius: 12px !important;
  background: var(--input-bg, var(--elevated)) !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16) !important;
  outline: none;
}

.lv-auth-phone-row.is-editing .lv-auth-phone-chip .input-box:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22) !important;
}

.lv-auth-phone-row.is-editing .lv-auth-phone-code .new-input,
.lv-auth-phone-row.is-editing .lv-auth-phone-code .choices__inner {
  min-height: 48px !important;
  border: 1px solid var(--accent) !important;
  border-radius: 12px !important;
  background: var(--input-bg, var(--elevated)) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16) !important;
}

.lv-auth-phone-row.is-editing .lv-auth-email-change {
  padding: 0 4px;
}

.lv-field-hint.is-error {
  color: #dc2626 !important;
}

@media (max-width: 980px) {
  .lv-auth-domain-row {
    grid-template-columns: 1fr;
  }

  .lv-fb-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .lv-auth-shell--second {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .lv-auth-shell--second .lv-auth-aesthetic,
  .lv-auth-shell--second .lv-auth-form-panel {
    order: initial;
    box-shadow: none;
    height: auto;
    max-height: none;
  }

  .lv-auth-shell--second .lv-auth-form-panel {
    order: 1;
    border-radius: 0;
    padding: 24px 20px 28px;
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .lv-auth-shell--second .lv-auth-form-inner {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }

  .lv-auth-shell--second .lv-auth-aesthetic {
    order: 2;
    min-height: 0;
    border-radius: 2.5rem 2.5rem 0 0;
    padding: 32px 20px max(40px, env(safe-area-inset-bottom, 0px));
    overflow: visible;
    align-items: flex-start;
  }

  .lv-auth-shell--second .lv-auth-social {
    grid-template-columns: 1fr;
  }
}

/* Support / Seek Help modals (Bootstrap 3 compatible) */
.modal.lv-auth-modal {
  padding: 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.modal.lv-auth-modal.in {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal.lv-auth-modal .modal-dialog {
  display: block !important;
  position: relative !important;
  float: none !important;
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  transform: none !important;
}

.lv-auth-modal .modal-content {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
  overflow: visible;
}

html[data-theme="dark"] .lv-auth-modal .modal-content {
  background: #1a1726;
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.12);
}

.lv-auth-modal .modal-header {
  position: relative;
  display: block;
  padding: 18px 48px 12px 20px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px 16px 0 0;
}

html[data-theme="dark"] .lv-auth-modal .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.lv-auth-modal .modal-title {
  margin: 0;
  padding-right: 8px;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.3;
  color: #111827 !important;
  text-align: left;
}

html[data-theme="dark"] .lv-auth-modal .modal-title {
  color: #f3f4f6 !important;
}

.lv-auth-modal .close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  float: none !important;
  width: 32px;
  height: 32px;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
  color: #6b7280 !important;
  text-shadow: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lv-auth-modal .close:hover,
.lv-auth-modal .close:focus {
  opacity: 1;
  color: #111827 !important;
  outline: none;
}

html[data-theme="dark"] .lv-auth-modal .close {
  color: #d1d5db !important;
}

html[data-theme="dark"] .lv-auth-modal .close:hover,
html[data-theme="dark"] .lv-auth-modal .close:focus {
  color: #fff !important;
}

.lv-auth-modal .modal-body {
  padding: 18px 20px 10px;
  overflow: visible;
}

.lv-auth-modal-lead {
  margin: 0 0 18px;
  font-size: 14px !important;
  line-height: 1.45;
  color: #4b5563;
}

html[data-theme="dark"] .lv-auth-modal-lead {
  color: #d1d5db;
}

/* Floating label cutout must match modal surface, not page input bg */
.lv-auth-modal .lv-field {
  margin: 8px 0 6px !important;
  padding-top: 8px;
}

.lv-auth-modal .new-input {
  background: #fff !important;
  border-color: #d1d5db !important;
}

html[data-theme="dark"] .lv-auth-modal .new-input {
  background: #12101a !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f3f4f6 !important;
}

.lv-auth-modal .new-input:focus + .new-label,
.lv-auth-modal .new-input:not(:placeholder-shown) + .new-label,
.lv-auth-modal .new-input.is-floated + .new-label,
.lv-auth-modal .lv-field:has(.new-input:focus) > .new-label,
.lv-auth-modal .lv-field:has(.new-input:not(:placeholder-shown)) > .new-label,
.lv-auth-modal .lv-field:has(.new-input.is-floated) > .new-label {
  background: #ffffff !important;
}

html[data-theme="dark"] .lv-auth-modal .new-input:focus + .new-label,
html[data-theme="dark"] .lv-auth-modal .new-input:not(:placeholder-shown) + .new-label,
html[data-theme="dark"] .lv-auth-modal .new-input.is-floated + .new-label,
html[data-theme="dark"] .lv-auth-modal .lv-field:has(.new-input:focus) > .new-label,
html[data-theme="dark"] .lv-auth-modal .lv-field:has(.new-input:not(:placeholder-shown)) > .new-label,
html[data-theme="dark"] .lv-auth-modal .lv-field:has(.new-input.is-floated) > .new-label {
  background: #1a1726 !important;
}

.lv-auth-modal-error {
  margin: 8px 0 0;
  font-size: 13px !important;
  font-weight: 600;
  color: #dc2626;
}

.lv-auth-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 18px;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.lv-auth-modal-cancel {
  min-height: 42px;
  border-radius: 10px !important;
  border: 1px solid #d1d5db !important;
  background: #fff !important;
  color: #374151 !important;
  font-weight: 600;
  padding: 8px 16px;
}

html[data-theme="dark"] .lv-auth-modal-cancel {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #e5e7eb !important;
}

.lv-auth-modal-submit {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
}

.lv-auth-modal-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lv-auth-modal-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lv-auth-modal-success-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.lv-auth-modal-success-icon svg {
  width: 20px;
  height: 20px;
}

.lv-auth-modal-success p {
  margin: 6px 0 0;
  font-size: 15px !important;
  line-height: 1.45;
  color: #374151;
}

html[data-theme="dark"] .lv-auth-modal-success p {
  color: #e5e7eb;
}

.shake {
  animation: lv-auth-shake 0.35s linear;
}

@keyframes lv-auth-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* —— Login / reset aesthetic content (panel stays RIGHT) —— */
.lv-auth-shell--login {
  /* Form left (60%) / aesthetic right (40%) */
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.lv-auth-shell--login .lv-auth-form-panel {
  order: 1;
  padding: clamp(28px, 4vh, 52px) clamp(40px, 6vw, 96px) 36px;
}

.lv-auth-shell--login .lv-auth-form-inner {
  max-width: 440px;
  margin: 0 auto;
}

.lv-auth-shell--login .lv-auth-form-panel h2 {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(26px, 2.4vw, 32px) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lv-auth-shell--login .lv-auth-subhead {
  font-size: 14.5px !important;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
}

.lv-auth-shell--login .lv-auth-logo {
  margin-bottom: 20px;
}

.lv-auth-shell--login .lv-auth-logo img {
  height: 40px;
}

.lv-auth-shell--login .lv-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lv-auth-shell--login .lv-auth-aesthetic,
.lv-auth-shell--reset .lv-auth-aesthetic {
  order: 2;
  border-radius: 5rem 0 0 5rem;
  box-shadow: -18px 0 48px rgba(22, 8, 64, 0.22);
  padding: clamp(32px, 5vh, 56px) clamp(28px, 3.5vw, 48px) clamp(32px, 5vh, 56px) clamp(36px, 4vw, 56px);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(circle at 85% 88%, rgba(167, 139, 250, 0.32), transparent 42%),
    linear-gradient(165deg, #4c1dcf 0%, #5b21ff 38%, #3b1bb1 100%);
}

/* Reset password: form LEFT / aesthetic RIGHT */
.lv-auth-shell--reset {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.lv-auth-shell--reset .lv-auth-form-panel {
  order: 1;
  padding: clamp(24px, 3.5vh, 48px) clamp(24px, 4vw, 64px) 32px;
}

/* One or two fields — matches the login measure so the pair feels related. */
.lv-auth-shell--reset .lv-auth-form-inner {
  max-width: 440px;
}

.lv-auth-shell--reset .lv-auth-form-panel h2 {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(24px, 2.3vw, 30px) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lv-auth-shell--reset .lv-auth-subhead {
  font-size: 14.5px !important;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.lv-auth-shell--reset .lv-auth-logo {
  margin-bottom: 18px;
}

.lv-auth-shell--reset .lv-auth-logo img {
  height: 40px;
}

.lv-auth-shell--reset .lv-auth-form-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.12);
}

.lv-auth-shell--reset .lv-auth-form-icon svg {
  width: 30px;
  height: 30px;
}

.lv-auth-shell--reset .lv-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lv-auth-shell--reset .lv-auth-seek-btn {
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.lv-auth-aesthetic--login .lv-auth-story-inner,
.lv-auth-aesthetic--reset .lv-auth-story-inner {
  max-width: 480px;
  width: 100%;
  height: 100%;
  justify-content: flex-start;
  padding-top: clamp(8px, 2vh, 24px);
}

.lv-auth-aesthetic--login .lv-auth-story-badge,
.lv-auth-aesthetic--reset .lv-auth-story-badge {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin-bottom: 22px;
  overflow: hidden;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.12) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 14px 28px rgba(18, 6, 56, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.lv-auth-aesthetic--login .lv-auth-story-badge img,
.lv-auth-aesthetic--reset .lv-auth-story-badge img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  object-position: center 28%;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 8px 12px rgba(12, 4, 40, 0.4));
}

.lv-auth-aesthetic--login .lv-auth-story-title,
.lv-auth-aesthetic--reset .lv-auth-story-title {
  margin: 0 0 14px !important;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(28px, 2.8vw, 36px) !important;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lv-auth-aesthetic--login .lv-auth-story-lead,
.lv-auth-aesthetic--reset .lv-auth-story-lead {
  margin: 0 0 28px;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 15.5px !important;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94) !important;
  max-width: 420px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lv-auth-aesthetic--login .lv-auth-accent-word {
  display: inline;
  color: #fbbf24 !important;
  font-weight: 700;
}

.lv-auth-aesthetic--login .lv-auth-story-hero,
.lv-auth-aesthetic--reset .lv-auth-story-hero {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.lv-auth-aesthetic--login .lv-auth-story-hero img,
.lv-auth-aesthetic--reset .lv-auth-story-hero img {
  width: min(100%, 440px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 22px 44px rgba(12, 4, 40, 0.48));
}

.lv-auth-story-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 440px;
  height: 100%;
}

.lv-auth-story-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(22, 8, 64, 0.28);
}

.lv-auth-story-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
  mix-blend-mode: lighten;
}

.lv-auth-story-title {
  margin-bottom: 12px !important;
}

.lv-auth-story-lead {
  margin: 0 0 28px;
  font-size: 15px !important;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92) !important;
}

.lv-auth-story-hero {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.lv-auth-story-hero img {
  width: min(100%, 380px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(22, 8, 64, 0.35));
  mix-blend-mode: lighten;
}

.lv-auth-form-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  position: relative;
}

.lv-auth-form-icon svg {
  width: 28px;
  height: 28px;
}

.lv-auth-form-icon::before,
.lv-auth-form-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.45);
}

.lv-auth-form-icon::before {
  top: 6px;
  right: 4px;
}

.lv-auth-form-icon::after {
  bottom: 10px;
  left: 2px;
  width: 4px;
  height: 4px;
}

.lv-auth-seek {
  margin-top: 8px;
  text-align: center;
}

.lv-auth-seek-text {
  margin: 0 0 10px;
  font-size: 13px !important;
  color: var(--muted);
}

.lv-auth-seek-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--ink);
  font-size: 14px !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
  cursor: pointer;
}

.lv-auth-seek-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--ink);
}

.lv-auth-seek-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.lv-auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 0;
  width: 100%;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.lv-auth-back-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

.lv-auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 16px;
  flex-wrap: wrap;
}

.lv-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.lv-auth-remember input {
  width: 16px;
  height: 16px;
  /* Bootstrap 3 sets an unscoped `input[type=checkbox]{margin:4px 0 0}`, which
     shifts the box off the flex centre line. Reset so it sits with the label. */
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.lv-auth-forgot {
  font-size: 14px !important;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.lv-auth-forgot:hover {
  text-decoration: underline;
}

.lv-auth-safe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 13px !important;
  color: var(--muted);
  text-align: center;
}

.lv-auth-safe-note img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Short viewports: trim spacing only — keep type/controls readable */
@media (max-height: 800px) and (min-width: 901px) {
  .lv-auth-shell--register .lv-auth-form-panel {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .lv-auth-shell--register .lv-auth-logo {
    margin-bottom: 10px;
  }

  .lv-auth-shell--register .lv-auth-logo img {
    height: 38px;
  }

  .lv-auth-shell--register .lv-auth-form-panel h2 {
    font-size: 22px !important;
  }

  .lv-auth-shell--register .lv-auth-subhead {
    margin-bottom: 10px;
    font-size: 14px !important;
  }

  .lv-auth-shell--register .lv-auth-progress {
    margin-bottom: 12px;
  }

  .lv-auth-shell--register .lv-auth-form .form-group,
  .lv-auth-shell--register .lv-auth-form .lv-field,
  .lv-auth-shell--register .lv-auth-form .form-group.form-group-row {
    margin-bottom: 10px !important;
  }

  .lv-auth-shell--register .lv-auth-form .new-input,
  .lv-auth-shell--register .lv-auth-form .choices__inner {
    min-height: 48px !important;
  }

  .lv-auth-shell--register .lv-field-icon,
  .lv-auth-shell--register .lv-auth-form .new-label,
  .lv-auth-shell--register .lv-auth-form .password-show-hide-feature {
    top: 24px;
  }

  .lv-auth-aesthetic--register .lv-auth-aesthetic-title {
    margin-bottom: 18px;
    font-size: clamp(22px, 2.2vw, 28px) !important;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-list {
    gap: 10px;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-card {
    padding: 14px 16px 14px 12px;
  }
}

/*
 * Laptop / 14" (~1280–1512 CSS px): aesthetic column is ~40% ≈ 480–600px.
 * Large title + 80px icon rails + 5rem curve were clipping copy. Scale down
 * type, icons, and padding; keep the two-column layout.
 */
@media (min-width: 901px) and (max-width: 1512px) {
  .lv-auth-aesthetic {
    padding: clamp(20px, 3vh, 36px) clamp(16px, 2vw, 28px) clamp(20px, 3vh, 36px) clamp(22px, 2.4vw, 36px);
    border-radius: 3.25rem 0 0 3.25rem;
  }

  .lv-auth-shell--login .lv-auth-aesthetic,
  .lv-auth-shell--reset .lv-auth-aesthetic,
  .lv-auth-shell--verify .lv-auth-aesthetic,
  .lv-auth-shell--second .lv-auth-aesthetic {
    border-radius: 3.25rem 0 0 3.25rem;
    padding: clamp(20px, 3vh, 36px) clamp(16px, 2vw, 28px) clamp(20px, 3vh, 36px) clamp(22px, 2.4vw, 36px);
  }

  .lv-auth-aesthetic-inner,
  .lv-auth-aesthetic--register .lv-auth-aesthetic-inner,
  .lv-auth-aesthetic--verify .lv-auth-story-inner,
  .lv-auth-aesthetic--second .lv-auth-story-inner,
  .lv-auth-aesthetic--login .lv-auth-story-inner,
  .lv-auth-aesthetic--reset .lv-auth-story-inner {
    max-width: 100%;
  }

  .lv-auth-aesthetic-title,
  .lv-auth-aesthetic--register .lv-auth-aesthetic-title,
  .lv-auth-aesthetic--verify .lv-auth-story-title,
  .lv-auth-aesthetic--second .lv-auth-story-title,
  .lv-auth-aesthetic--login .lv-auth-story-title,
  .lv-auth-shell--login .lv-auth-story-title,
  .lv-auth-shell--reset .lv-auth-story-title {
    font-size: clamp(20px, 1.85vw, 26px) !important;
    line-height: 1.25;
    margin-bottom: 14px !important;
  }

  .lv-auth-story-lead,
  .lv-auth-aesthetic--verify .lv-auth-story-lead,
  .lv-auth-shell--second .lv-auth-story-lead,
  .lv-auth-shell--login .lv-auth-story-lead,
  .lv-auth-shell--reset .lv-auth-story-lead {
    font-size: 13.5px !important;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .lv-auth-feature-list,
  .lv-auth-aesthetic--register .lv-auth-feature-list {
    gap: 10px;
  }

  .lv-auth-feature-card,
  .lv-auth-aesthetic--register .lv-auth-feature-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px 12px 10px;
    border-radius: 16px;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-card--secure {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 12px 14px 12px 10px;
  }

  .lv-auth-feature-icon,
  .lv-auth-aesthetic--register .lv-auth-feature-icon,
  .lv-auth-aesthetic--register .lv-auth-feature-icon img {
    width: 52px;
    height: 52px;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-icon--secure,
  .lv-auth-aesthetic--register .lv-auth-feature-icon--secure img {
    width: 40px;
    height: 40px;
  }

  .lv-auth-feature-copy h3,
  .lv-auth-aesthetic--register .lv-auth-feature-copy h3,
  .lv-auth-aesthetic--register .lv-auth-feature-card--secure .lv-auth-feature-copy h3 {
    font-size: 14px !important;
    margin-bottom: 3px;
  }

  .lv-auth-feature-copy p,
  .lv-auth-aesthetic--register .lv-auth-feature-copy p,
  .lv-auth-aesthetic--register .lv-auth-feature-card--secure .lv-auth-feature-copy p {
    font-size: 12.5px !important;
    line-height: 1.4;
  }

  .lv-auth-verify-points,
  .lv-auth-aesthetic--verify .lv-auth-verify-points,
  .lv-auth-aesthetic--second .lv-auth-verify-points {
    gap: 12px;
    margin-bottom: 16px;
  }

  .lv-auth-verify-points li,
  .lv-auth-aesthetic--second .lv-auth-verify-points li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .lv-auth-verify-point-icon,
  .lv-auth-aesthetic--second .lv-auth-verify-point-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
  }

  .lv-auth-verify-point-icon svg,
  .lv-auth-aesthetic--second .lv-auth-verify-point-icon svg {
    width: 22px;
    height: 22px;
  }

  .lv-auth-verify-points strong,
  .lv-auth-aesthetic--second .lv-auth-verify-points strong {
    font-size: 13px !important;
  }

  .lv-auth-verify-points span,
  .lv-auth-aesthetic--second .lv-auth-verify-points span {
    font-size: 12px !important;
  }

  .lv-auth-story-hero,
  .lv-auth-shell--second .lv-auth-story-hero,
  .lv-auth-aesthetic--verify .lv-auth-story-hero,
  .lv-auth-shell--login .lv-auth-story-hero {
    margin: 4px 0 16px;
  }

  .lv-auth-story-hero img,
  .lv-auth-shell--second .lv-auth-story-hero img,
  .lv-auth-aesthetic--verify .lv-auth-story-hero img,
  .lv-auth-shell--login .lv-auth-story-hero img {
    width: min(100%, 280px);
  }

  .lv-auth-pill-badge,
  .lv-auth-aesthetic--verify .lv-auth-pill-badge {
    margin-bottom: 12px;
    padding: 6px 12px;
    font-size: 12px !important;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .lv-auth-aesthetic {
    border-radius: 2.5rem 0 0 2.5rem;
    padding: 18px 14px 18px 18px;
  }

  .lv-auth-shell--login .lv-auth-aesthetic,
  .lv-auth-shell--reset .lv-auth-aesthetic,
  .lv-auth-shell--verify .lv-auth-aesthetic,
  .lv-auth-shell--second .lv-auth-aesthetic {
    border-radius: 2.5rem 0 0 2.5rem;
    padding: 18px 14px 18px 18px;
  }

  .lv-auth-aesthetic-title,
  .lv-auth-aesthetic--register .lv-auth-aesthetic-title,
  .lv-auth-aesthetic--verify .lv-auth-story-title,
  .lv-auth-aesthetic--second .lv-auth-story-title,
  .lv-auth-shell--login .lv-auth-story-title {
    font-size: clamp(18px, 1.7vw, 22px) !important;
  }

  .lv-auth-feature-card,
  .lv-auth-aesthetic--register .lv-auth-feature-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .lv-auth-feature-icon,
  .lv-auth-aesthetic--register .lv-auth-feature-icon,
  .lv-auth-aesthetic--register .lv-auth-feature-icon img {
    width: 44px;
    height: 44px;
  }

  .lv-auth-story-hero img,
  .lv-auth-shell--second .lv-auth-story-hero img,
  .lv-auth-aesthetic--verify .lv-auth-story-hero img,
  .lv-auth-shell--login .lv-auth-story-hero img {
    width: min(100%, 220px);
  }
}

@media (max-width: 900px) {
  html:has(body.lv-auth-body),
  .lv-auth-body {
    overflow: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .lv-auth-shell,
  .lv-auth-shell--register,
  .lv-auth-shell--login,
  .lv-auth-shell--reset,
  .lv-auth-shell--verify,
  .lv-auth-shell--second {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  /* Beat shell-specific desktop padding (higher specificity than base panel). */
  .lv-auth-form-panel,
  .lv-auth-shell--register .lv-auth-form-panel,
  .lv-auth-shell--login .lv-auth-form-panel,
  .lv-auth-shell--reset .lv-auth-form-panel,
  .lv-auth-shell--verify .lv-auth-form-panel,
  .lv-auth-shell--second .lv-auth-form-panel {
    height: auto;
    max-height: none;
    order: 1;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 20px 28px;
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-bottom: 28px;
  }

  .lv-auth-form-inner,
  .lv-auth-shell--register .lv-auth-form-inner,
  .lv-auth-shell--login .lv-auth-form-inner,
  .lv-auth-shell--reset .lv-auth-form-inner,
  .lv-auth-shell--verify .lv-auth-form-inner,
  .lv-auth-shell--second .lv-auth-form-inner {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }

  .lv-auth-aesthetic,
  .lv-auth-shell--register .lv-auth-aesthetic,
  .lv-auth-shell--login .lv-auth-aesthetic,
  .lv-auth-shell--reset .lv-auth-aesthetic,
  .lv-auth-shell--verify .lv-auth-aesthetic,
  .lv-auth-shell--second .lv-auth-aesthetic {
    order: 2;
    position: relative;
    height: auto;
    min-height: 0;
    padding: 32px 20px max(40px, env(safe-area-inset-bottom, 0px));
    overflow: visible;
    /* Stacked full-width: curve top-left + top-right only */
    border-radius: 2.5rem 2.5rem 0 0;
    box-shadow: none;
    align-items: flex-start;
  }

  .lv-auth-shell--register .lv-auth-aesthetic {
    perspective: none;
  }

  .lv-auth-shell--login .lv-auth-form-panel h2,
  .lv-auth-shell--register .lv-auth-form-panel h2,
  .lv-auth-shell--reset .lv-auth-form-panel h2,
  .lv-auth-shell--verify .lv-auth-form-panel h2,
  .lv-auth-shell--second .lv-auth-form-panel h2 {
    font-size: clamp(22px, 6vw, 28px) !important;
    padding-right: 36px; /* clear fixed theme toggle */
  }

  .lv-auth-shell--login .lv-auth-subhead,
  .lv-auth-shell--register .lv-auth-subhead,
  .lv-auth-shell--reset .lv-auth-subhead,
  .lv-auth-shell--verify .lv-auth-subhead,
  .lv-auth-shell--second .lv-auth-subhead {
    font-size: 14px !important;
    margin-bottom: 16px;
  }

  .lv-auth-logo {
    margin-bottom: 16px;
  }

  .lv-auth-logo img,
  .lv-auth-shell--login .lv-auth-logo img,
  .lv-auth-shell--register .lv-auth-logo img,
  .lv-auth-shell--reset .lv-auth-logo img,
  .lv-auth-shell--verify .lv-auth-logo img {
    height: 36px;
  }

  /* Progress: compact circles + tighter secondary label copy */
  .lv-auth-progress,
  .lv-auth-shell--register .lv-auth-progress,
  .lv-auth-shell--second .lv-auth-progress,
  .lv-auth-shell--verify .lv-auth-progress {
    margin-bottom: 14px;
  }

  .lv-auth-progress-bar,
  .lv-auth-shell--register .lv-auth-progress-bar {
    column-gap: 8px;
    max-width: 100%;
  }

  .lv-auth-progress-circle,
  .lv-auth-shell--register .lv-auth-progress-circle {
    width: 38px;
    height: 38px;
  }

  .lv-auth-progress-circle img,
  .lv-auth-shell--register .lv-auth-progress-circle img {
    width: 20px;
    height: 20px;
  }

  .lv-auth-progress-line,
  .lv-auth-shell--register .lv-auth-progress-line {
    margin-top: 17px;
  }

  .lv-auth-progress-label,
  .lv-auth-shell--register .lv-auth-progress-label,
  .lv-auth-shell--second .lv-auth-progress-label,
  .lv-auth-shell--verify .lv-auth-progress-label {
    max-width: 6.5em;
    font-size: 11px !important;
    line-height: 1.25;
  }

  .lv-auth-progress-label strong,
  .lv-auth-shell--register .lv-auth-progress-label strong,
  .lv-auth-shell--second .lv-auth-progress-label strong,
  .lv-auth-shell--verify .lv-auth-progress-label strong {
    font-size: 12px !important;
  }

  /* Social + phone row: stack before fields get cramped */
  .lv-auth-social,
  .lv-auth-shell--register .lv-auth-social,
  .lv-auth-shell--login .lv-auth-social {
    grid-template-columns: 1fr;
  }

  .lv-auth-form .form-group.form-group-row {
    grid-template-columns: 1fr;
  }

  .lv-auth-social-btn,
  .lv-auth-shell--register .lv-auth-social-btn,
  .lv-auth-shell--login .lv-auth-social-btn {
    min-height: 46px;
    font-size: 14px !important;
  }

  .lv-auth-fb-create .lv-auth-social-btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding-left: 12px;
    padding-right: 12px;
  }

  .lv-auth-aesthetic--register .lv-auth-aesthetic-title {
    font-size: 22px !important;
    margin-bottom: 18px;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 12px 14px;
    gap: 12px;
    transform: none;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-card:hover {
    transform: none;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-icon,
  .lv-auth-aesthetic--register .lv-auth-feature-icon img {
    width: 52px;
    height: 52px;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-icon {
    transform: none;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-copy h3 {
    font-size: 15px !important;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-copy p {
    font-size: 13px !important;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-card--secure {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .lv-auth-story-inner,
  .lv-auth-aesthetic--login .lv-auth-story-inner,
  .lv-auth-aesthetic--reset .lv-auth-story-inner,
  .lv-auth-aesthetic--verify .lv-auth-story-inner,
  .lv-auth-aesthetic--second .lv-auth-story-inner {
    height: auto;
    padding-top: 0;
  }

  .lv-auth-story-title,
  .lv-auth-shell--login .lv-auth-story-title,
  .lv-auth-shell--reset .lv-auth-story-title,
  .lv-auth-aesthetic--verify .lv-auth-story-title,
  .lv-auth-aesthetic--second .lv-auth-story-title {
    font-size: clamp(22px, 5.5vw, 28px) !important;
  }

  .lv-auth-story-lead,
  .lv-auth-shell--login .lv-auth-story-lead,
  .lv-auth-shell--reset .lv-auth-story-lead,
  .lv-auth-shell--second .lv-auth-story-lead {
    font-size: 14px !important;
  }

  .lv-auth-story-hero {
    margin: 16px 0 0;
  }

  .lv-auth-story-hero img,
  .lv-auth-shell--login .lv-auth-story-hero img,
  .lv-auth-shell--second .lv-auth-story-hero img,
  .lv-auth-aesthetic--verify .lv-auth-story-hero img {
    width: min(100%, 280px);
  }

  .lv-auth-story-badge,
  .lv-auth-aesthetic--login .lv-auth-story-badge,
  .lv-auth-aesthetic--reset .lv-auth-story-badge {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .lv-auth-story-badge img,
  .lv-auth-aesthetic--login .lv-auth-story-badge img,
  .lv-auth-aesthetic--reset .lv-auth-story-badge img {
    width: 64px;
    height: 64px;
  }

  /* Verify OTP + footer */
  .lv-auth-verify .passcode-wrapper {
    gap: 8px;
  }

  .lv-auth-verify .codeBox {
    width: min(56px, 18vw);
    height: min(58px, 19vw);
    font-size: 1.2rem !important;
  }

  .lv-auth-verify-footer,
  .lv-auth-shell--verify .lv-auth-verify-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .lv-auth-verify-footer-sep {
    display: none;
  }

  .lv-auth-resend-line,
  .lv-auth-need-help {
    justify-content: center;
  }

  .lv-auth-safe-note {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px !important;
    padding: 0 4px;
  }

  .lv-auth-theme-toggle {
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
  }

  .lv-auth-back {
    margin-bottom: 12px;
  }
}

@media (max-width: 560px) {
  .lv-auth-form-panel,
  .lv-auth-shell--register .lv-auth-form-panel,
  .lv-auth-shell--login .lv-auth-form-panel,
  .lv-auth-shell--reset .lv-auth-form-panel,
  .lv-auth-shell--verify .lv-auth-form-panel,
  .lv-auth-shell--second .lv-auth-form-panel {
    padding: 20px 16px 24px;
    padding-top: max(20px, env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .lv-auth-aesthetic,
  .lv-auth-shell--register .lv-auth-aesthetic,
  .lv-auth-shell--login .lv-auth-aesthetic,
  .lv-auth-shell--reset .lv-auth-aesthetic,
  .lv-auth-shell--verify .lv-auth-aesthetic,
  .lv-auth-shell--second .lv-auth-aesthetic {
    padding: 28px 16px max(36px, env(safe-area-inset-bottom, 0px));
    border-radius: 2rem 2rem 0 0;
  }

  .lv-auth-shell--login .lv-auth-form-panel h2,
  .lv-auth-shell--register .lv-auth-form-panel h2,
  .lv-auth-shell--reset .lv-auth-form-panel h2,
  .lv-auth-shell--verify .lv-auth-form-panel h2,
  .lv-auth-shell--second .lv-auth-form-panel h2 {
    font-size: 22px !important;
    padding-right: 40px;
  }

  /* Progress: show step titles only — secondary copy wraps badly <560 */
  .lv-auth-progress-label,
  .lv-auth-shell--register .lv-auth-progress-label,
  .lv-auth-shell--second .lv-auth-progress-label,
  .lv-auth-shell--verify .lv-auth-progress-label {
    max-width: 4.75em;
    font-size: 0 !important;
    line-height: 0;
  }

  .lv-auth-progress-label strong,
  .lv-auth-shell--register .lv-auth-progress-label strong,
  .lv-auth-shell--second .lv-auth-progress-label strong,
  .lv-auth-shell--verify .lv-auth-progress-label strong {
    display: block;
    font-size: 11px !important;
    line-height: 1.25;
    margin-top: 6px;
  }

  .lv-auth-progress-circle,
  .lv-auth-shell--register .lv-auth-progress-circle {
    width: 34px;
    height: 34px;
  }

  .lv-auth-progress-line,
  .lv-auth-shell--register .lv-auth-progress-line {
    margin-top: 15px;
    min-width: 20px;
  }

  .lv-auth-feature-card,
  .lv-auth-aesthetic--register .lv-auth-feature-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-icon,
  .lv-auth-aesthetic--register .lv-auth-feature-icon img {
    width: 44px;
    height: 44px;
  }

  .lv-auth-aesthetic--register .lv-auth-feature-card--secure {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .lv-auth-aesthetic--register .lv-auth-aesthetic-title {
    font-size: 20px !important;
  }

  .lv-auth-verify .codeBox {
    width: 48px;
    height: 50px;
    font-size: 1.1rem !important;
    border-radius: 10px;
  }

  .lv-auth-otp-hint {
    flex-wrap: wrap;
    text-align: center;
    font-size: 12px !important;
  }

  .lv-auth-email-chip {
    padding: 10px 12px;
    gap: 8px;
  }

  .lv-auth-phone-row {
    flex-wrap: wrap;
  }

  .lv-auth-terms {
    font-size: 13px !important;
    align-items: flex-start;
  }

  .lv-auth-submit,
  .lv-auth-shell--login .lv-auth-submit,
  .lv-auth-shell--register .lv-auth-submit {
    min-height: 48px;
    font-size: 15px !important;
  }
}

@media (max-width: 380px) {
  .lv-auth-verify .passcode-wrapper {
    gap: 6px;
  }

  .lv-auth-verify .codeBox {
    width: 44px;
    height: 46px;
  }

  .lv-auth-social-btn,
  .lv-auth-shell--register .lv-auth-social-btn,
  .lv-auth-shell--login .lv-auth-social-btn {
    font-size: 13px !important;
    gap: 6px;
  }

  .lv-auth-form .new-label,
  .lv-auth-modal .new-label {
    font-size: 14px !important;
  }
}
