/* OripioFin — Auth v2 (login, signup, forgot) */

body.auth-v2-page {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
}

.auth-v2 {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.auth-v2__panel {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3.5rem);
  background: var(--card);
  border-right: 1px solid var(--line);
}

.auth-v2__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: flex-start;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-v2__brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgb(var(--color-primary-rgb) / 0.22);
}

.auth-v2__brand--logo {
  gap: 0;
  line-height: 0;
  background: transparent;
}

.auth-v2__brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px, 52vw);
  max-height: 2.75rem;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}

.auth-v2__body {
  width: min(420px, 100%);
  margin: auto;
  padding: 1.5rem 0;
}

.auth-v2__body--signup {
  width: min(560px, 100%);
}

.auth-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgb(var(--color-primary-rgb) / 0.08);
  color: var(--deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-v2__badge i {
  font-size: 0.9rem;
}

.auth-v2__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.auth-v2__subtitle {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 34ch;
}

.auth-v2__field {
  margin-bottom: 1rem;
}

.auth-v2__field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.auth-v2__field label .req {
  color: var(--deep);
}

.auth-v2__field label .opt {
  color: var(--muted);
  font-weight: 500;
}

.auth-v2__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

.auth-v2__field--full {
  grid-column: 1 / -1;
}

.auth-v2__input--otp {
  padding: 0 0.35rem 0 0.9rem;
}

.auth-v2__input--otp input {
  padding-right: 0.35rem;
}

.auth-v2__otp-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--deep);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.auth-v2__otp-btn i {
  font-size: 0.95rem;
  line-height: 1;
}

.auth-v2__otp-btn:hover:not(:disabled) {
  background: var(--deep-3);
}

.auth-v2__otp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-v2__password-strength {
  margin: 0.15rem 0 0.5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
}

.auth-v2__password-strength-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.auth-v2__strength-bar {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.auth-v2__strength-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ef4444;
  transition: width 0.2s ease, background 0.2s ease;
}

.auth-v2__strength-fill.is-fair {
  background: #f59e0b;
}

.auth-v2__strength-fill.is-good {
  background: #00d4aa;
}

.auth-v2__strength-status {
  margin: 0.45rem 0 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.auth-v2__strength-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}

.auth-v2__strength-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.auth-v2__strength-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ef4444;
  transition: background 0.15s ease;
}

.auth-v2__strength-list li.is-met {
  color: var(--ink);
}

.auth-v2__strength-list li.is-met .auth-v2__strength-dot {
  background: #00d4aa;
}

.auth-v2__input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-v2__input:focus-within {
  border-color: rgb(var(--color-primary-rgb) / 0.45);
  background: var(--card);
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.1);
}

.auth-v2__input > i {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.auth-v2__input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.auth-v2__input input::placeholder {
  color: #9ca3af;
}

.auth-v2__toggle {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-v2__toggle:hover {
  background: rgb(var(--color-primary-rgb) / 0.08);
  color: var(--deep);
}

.auth-v2__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.25rem 0 1.1rem;
  font-size: 0.8rem;
}

.auth-v2__check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.auth-v2__check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--deep);
}

.auth-v2__link {
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}

.auth-v2__link:hover {
  text-decoration: underline;
}

.auth-v2__terms {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.25rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
}

.auth-v2__terms input {
  margin-top: 0.2rem;
  accent-color: var(--deep);
}

.auth-v2__terms a {
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}

.auth-v2__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-v2__btn--primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 24px rgb(var(--color-primary-rgb) / 0.28);
}

.auth-v2__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgb(var(--color-primary-rgb) / 0.34);
}

#auth-wallet-login {
  margin-top: 1rem;
}

.auth-v2__btn--wallet {
  color: var(--deep);
  background: rgb(var(--color-primary-rgb) / 0.08);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.18);
}

.auth-v2__btn--wallet:hover {
  background: rgb(var(--color-primary-rgb) / 0.12);
  transform: translateY(-1px);
}

.auth-v2__wallet {
  margin-bottom: 1.25rem;
}

.auth-v2__wallet-actions {
  display: grid;
  gap: 0.55rem;
}

.auth-v2__btn--wallet-secondary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.auth-v2__btn--wallet-secondary:hover {
  border-color: rgb(var(--color-primary-rgb) / 0.35);
  background: rgb(var(--color-primary-rgb) / 0.05);
  transform: translateY(-1px);
}

.auth-v2__wallet-hint {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.auth-v2__account-picker {
  margin-top: 0.75rem;
}

.auth-v2__account-picker.is-hidden {
  display: none !important;
}

.auth-v2__account-picker label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.auth-v2__account-picker select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.7rem 2.2rem 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center / 14px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
}

.auth-v2__account-picker select:focus {
  outline: none;
  border-color: rgb(var(--color-primary-rgb) / 0.45);
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.12);
}

.auth-v2__wallet-status {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgb(var(--color-primary-rgb) / 0.06);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.16);
}

.auth-v2__wallet-status-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-v2__wallet-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.auth-v2__wallet-address {
  flex: 1 1 8rem;
  min-width: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.auth-v2__wallet-chain {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgb(var(--color-primary-rgb) / 0.12);
  color: var(--deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-v2__wallet-disconnect {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth-v2__wallet-disconnect:hover:not(:disabled) {
  background: var(--page);
  border-color: rgb(var(--color-primary-rgb) / 0.25);
  color: var(--deep);
}

.auth-v2__wallet-disconnect:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-v2__wallet-connected.is-hidden,
.auth-v2__wallet-disconnected.is-hidden,
.auth-v2__wallet-loading.is-hidden {
  display: none;
}

.auth-v2__divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.35rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.auth-v2__switch {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-v2__switch a {
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
}

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

.auth-v2__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-v2__back:hover {
  color: var(--deep);
}

.auth-v2__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-v2__step {
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--page);
  text-align: center;
}

.auth-v2__step strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--deep);
}

.auth-v2__step span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.auth-v2__step.is-active {
  border-color: rgb(var(--color-primary-rgb) / 0.35);
  background: rgb(var(--color-primary-rgb) / 0.06);
}

.auth-v2__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-v2__footer a {
  color: var(--muted);
  text-decoration: none;
}

.auth-v2__footer a:hover {
  color: var(--deep);
}

/* Showcase panel */
.auth-v2__showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--deep-3) 0%, var(--deep) 42%, var(--deep-2) 100%);
}

.auth-v2__showcase-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
}

.auth-v2__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.auth-v2__glow--a {
  top: -80px;
  right: -60px;
  background: #93c5fd;
}

.auth-v2__glow--b {
  bottom: -120px;
  left: -80px;
  background: #0ea5e9;
}

.auth-v2__showcase-inner {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin: 0 auto;
}

.auth-v2__showcase h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.auth-v2__showcase p {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 38ch;
}

.auth-v2__cards {
  display: grid;
  gap: 0.85rem;
}

.auth-v2__stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.auth-v2__stat-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.15rem;
}

.auth-v2__stat div {
  min-width: 0;
}

.auth-v2__stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-v2__stat span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.auth-v2__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.auth-v2__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .auth-v2 {
    grid-template-columns: 1fr;
  }

  .auth-v2__panel {
    border-right: 0;
    border-top: 1px solid var(--line);
    order: 2;
  }

  .auth-v2__showcase {
    min-height: 320px;
    order: 1;
    padding: 2rem 1.5rem;
  }

  .auth-v2__showcase p {
    margin-bottom: 1.25rem;
  }

  .auth-v2__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .auth-v2__body {
    padding: 0.75rem 0;
  }

  .auth-v2__form-grid {
    grid-template-columns: 1fr;
  }

  .auth-v2__field--full {
    grid-column: auto;
  }

  .auth-v2__cards {
    grid-template-columns: 1fr;
  }

  .auth-v2__steps {
    grid-template-columns: 1fr;
  }
}

/* Auth split layout (hero left, form card right) */
body.auth-v2-page--split {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgb(var(--color-primary-rgb) / 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 75% 65% at 100% 100%, rgb(139 92 246 / 0.07) 0%, transparent 52%),
    linear-gradient(145deg, #eefbf6 0%, #f8fafc 42%, #f5f3ff 100%);
}

.auth-v2--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  width: min(1280px, 100%);
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
  padding: clamp(0.85rem, 1.8vw, 1.35rem) clamp(1rem, 2.5vw, 2rem);
  box-sizing: border-box;
}

.auth-v2__hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: center;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
  overflow: hidden;
}

.auth-v2__hero-blob {
  display: none;
}

.auth-v2__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 0;
  align-self: center;
  min-height: 0;
  overflow: hidden;
}

.auth-v2__brand--hero-top {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.auth-v2--split .auth-v2__brand--hero-top {
  margin-bottom: 1.5rem;
}

.auth-v2__badge--hero {
  margin-bottom: 0.65rem;
}

.auth-v2__hero-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.auth-v2--split .auth-v2__hero-title {
  margin-bottom: 0.9rem;
}

.auth-v2__hero-text {
  margin: 0 0 1.1rem;
  max-width: 42ch;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-v2--split .auth-v2__hero-text {
  margin-bottom: 2rem;
  line-height: 1.65;
}

.auth-v2__features {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-v2--split .auth-v2__features {
  gap: 2.25rem;
  margin-bottom: 2.25rem;
}

.auth-v2__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.auth-v2--split .auth-v2__feature {
  gap: 1.15rem;
  padding: 0.15rem 0;
}

.auth-v2__feature-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.14) 0%, rgb(139 92 246 / 0.12) 100%);
  color: var(--deep);
  font-size: 1.05rem;
}

.auth-v2__feature strong {
  display: block;
  margin-bottom: 0.1rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-v2--split .auth-v2__feature strong {
  margin-bottom: 0.45rem;
  font-size: 0.96rem;
}

.auth-v2__feature p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-v2--split .auth-v2__feature p {
  font-size: 0.86rem;
  line-height: 1.6;
}

.auth-v2__trust--hero {
  margin-bottom: 0;
}

.auth-v2--split .auth-v2__trust--hero {
  margin-top: 0.35rem;
}

.auth-v2__trust--hero span {
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.7);
  color: #334155;
  backdrop-filter: blur(8px);
}

.auth-v2__brand--hero {
  position: relative;
  z-index: 1;
}

.auth-v2__hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-shrink: 0;
}

.auth-v2__footer--hero {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.auth-v2__form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.auth-v2__card {
  width: min(648px, 100%);
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1.15rem, 2vw, 1.6rem) clamp(1.25rem, 2.2vw, 1.75rem) 1.15rem;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 24px 60px rgb(15 23 42 / 0.08),
    0 2px 8px rgb(15 23 42 / 0.04);
}

.auth-v2--signup .auth-v2__body--signup {
  width: 100%;
  margin: 0;
  padding: 0;
}

.auth-v2--signup .auth-v2__form-grid {
  column-gap: 1rem;
  row-gap: 0.15rem;
}

.auth-v2--signup .auth-v2__field {
  margin-bottom: 0.9rem;
}

.auth-v2--signup .auth-v2__field label {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
}

.auth-v2--signup .auth-v2__input {
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 11px;
}

.auth-v2--signup .auth-v2__input input {
  font-size: 0.86rem;
}

.auth-v2--signup .auth-v2__otp-btn {
  width: 2.25rem;
  height: 2.25rem;
}

.auth-v2--signup .auth-v2__password-strength {
  margin: 0.15rem 0 0.25rem;
  padding: 0.75rem 0.85rem;
}

.auth-v2--signup .auth-v2__password-strength-title {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

.auth-v2--signup .auth-v2__strength-status {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.72rem;
}

.auth-v2--signup .auth-v2__terms {
  margin: 0.2rem 0 0.9rem;
  font-size: 0.76rem;
}

.auth-v2--signup .auth-v2__btn {
  min-height: 46px;
  font-size: 0.9rem;
}

.auth-v2--split .auth-v2__switch {
  margin-top: 1.1rem;
  font-size: 0.84rem;
}

/* Login & forgot — form card */
.auth-v2--split .auth-v2__body {
  width: 100%;
  margin: 0;
  padding: 0;
}

.auth-v2--split:not(.auth-v2--signup) .auth-v2__field {
  margin-bottom: 0.9rem;
}

.auth-v2--split:not(.auth-v2--signup) .auth-v2__field label {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
}

.auth-v2--split:not(.auth-v2--signup) .auth-v2__input {
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 11px;
}

.auth-v2--split:not(.auth-v2--signup) .auth-v2__input input {
  font-size: 0.86rem;
}

.auth-v2--split:not(.auth-v2--signup) .auth-v2__btn {
  min-height: 46px;
  font-size: 0.9rem;
}

.auth-v2--split:not(.auth-v2--signup) .auth-v2__switch {
  text-align: center;
}

.auth-v2--split .auth-v2__back {
  margin-bottom: 0.25rem;
}

.auth-v2--split .auth-v2__steps {
  margin-bottom: 1.25rem;
}

.auth-v2__card--auth {
  width: min(480px, 100%);
}

@media (min-width: 992px) {
  .auth-v2--split .auth-v2__hero {
    padding: 1.25rem 1.5rem 1.25rem 2rem;
  }

  .auth-v2--split .auth-v2__hero-inner {
    padding-top: 0.5rem;
  }
}

.auth-v2__desktop-only {
  display: block;
}

.auth-v2__mobile-only {
  display: none;
}

@media (max-width: 991.98px) {
  body.auth-v2-page--split {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: auto;
  }

  .auth-v2--split {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 1.25rem;
    gap: 0;
    box-sizing: border-box;
  }

  .auth-v2__desktop-only {
    display: none !important;
  }

  .auth-v2__mobile-only {
    display: flex;
  }

  .auth-v2--split .auth-v2__brand--hero-top {
    margin-bottom: 1rem;
  }

  .auth-v2__brand-logo {
    max-width: min(160px, 48vw);
    max-height: 2.5rem;
  }

  .auth-v2__hero {
    display: block;
    height: auto;
    max-height: none;
    padding: 1.1rem 0 0.75rem;
    overflow: visible;
  }

  .auth-v2__hero-inner {
    margin: 0;
    max-width: none;
    overflow: visible;
  }

  .auth-v2__hero-title {
    font-size: 1.65rem;
    margin-bottom: 0.4rem;
  }

  .auth-v2__hero-text {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
  }

  .auth-v2__form-side {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0 0 1.5rem;
  }

  .auth-v2__card {
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    border-radius: 18px;
    padding: 1.15rem 1.1rem 1.1rem;
    box-sizing: border-box;
  }

  .auth-v2__mobile-foot {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 1.25rem;
    padding-top: 0.25rem;
    text-align: center;
  }

  .auth-v2__footer--mobile {
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 575.98px) {
  .auth-v2--split {
    padding: 0 1rem;
  }

  .auth-v2__hero {
    padding-bottom: 0.65rem;
  }

  .auth-v2__form-side {
    padding-bottom: 1.25rem;
  }

  .auth-v2__card {
    padding: 1rem 0.95rem;
  }

  .auth-v2__brand-logo {
    max-width: min(148px, 56vw);
    max-height: 2.35rem;
  }
}

/* WalletConnect / web3modal must sit above auth card overlays */
w3m-modal,
wcm-modal,
#walletconnect-wrapper,
.walletconnect-modal__base {
  z-index: 2147483646 !important;
}

.auth-v2__wallet-loading {
  display: grid;
  gap: 0.65rem;
}

.auth-v2__wallet-loading.is-hidden {
  display: none;
}
