* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg-1: #050b1d;
  --bg-2: #0a1430;
  --card: #0d1730;
  --card-2: #0a1227;
  --border: rgba(255, 255, 255, .08);
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
  --muted-2: rgba(255, 255, 255, .48);
  --green: #16a34a;
  --green-2: #15803d;
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, .18);
  --input-bg: rgba(255, 255, 255, .03);
  --input-border: rgba(255, 255, 255, .10);
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --radius: 18px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 197, 94, .09), transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, .14), transparent 25%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.auth-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 18px 60px;
}

.auth-shell {
  width: 100%;
  max-width: 1240px;
}

.auth-card {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .08), transparent 30%),
    linear-gradient(180deg, rgba(13, 23, 48, .90) 0%, rgba(8, 15, 31, .88) 100%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .44),
    inset 0 1px 0 rgba(255, 255, 255, .045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}

.auth-left {
  padding: 56px 52px;
  border-right: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-left-inner {
  width: 100%;
  max-width: 430px;
}

.auth-logo-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 26px;
}

.auth-logo {
  height: 70px;
  width: auto;
  display: block;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.auth-title {
  font-size: 40px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.5;
}

.auth-feature i {
  color: var(--success);
  margin-top: 2px;
}

.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .05);
  color: var(--muted);
  font-size: 12px;
}

.auth-right {
  padding: 42px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-wrap {
  width: 100%;
  max-width: 460px;
}

.auth-mobile-logo {
  display: none;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-mobile-logo img {
  height: 58px;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-2);
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #22c55e);
  border-radius: 999px;
  transition: width .3s ease;
}

.step-panel {
  display: none;
  animation: fadeIn .25s ease;
}

.step-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.step-title {
  font-size: 31px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.x-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  overflow: hidden;
  transition: all .2s ease;
}

.x-input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .25), 0 0 16px var(--blue-glow);
}

.x-input-icon {
  width: 52px;
  min-width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .72);
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.x-input {
  flex: 1;
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
}

.x-input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.x-input.select {
  appearance: none;
  cursor: pointer;
}

.x-input-plain {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: #fff;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transition: all .2s ease;
}

.x-input-plain:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .25), 0 0 16px var(--blue-glow);
}

.x-input-plain::placeholder {
  color: rgba(255, 255, 255, .35);
}

.promo-toggle {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #93c5fd;
  cursor: pointer;
  user-select: none;
}

.promo-box {
  display: none;
  margin-top: 12px
}

.promo-box.show {
  display: block
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 20px;
}

.checkbox-row input {
  margin-top: 4px;
  accent-color: var(--green);
}

.checkbox-row label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.checkbox-row a {
  color: #93c5fd;
  text-decoration: none;
}

.checkbox-row a:hover {
  text-decoration: underline
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  border: 0;
  border-radius: 16px;
  min-height: 50px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .18);
  flex: 1;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .06);
}

.auth-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 14px;
  line-height: 1.6;
}

.auth-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.token-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 8px;
}

.token-input {
  width: 52px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  outline: none;
  transition: all .2s ease;
}

.token-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .25), 0 0 16px var(--blue-glow);
}

.token-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  gap: 10px;
  flex-wrap: wrap;
}

.token-actions a {
  color: #93c5fd;
  text-decoration: none;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.option-card {
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}

.option-card:hover {
  border-color: rgba(255, 255, 255, .18);
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .25), 0 0 16px var(--blue-glow);
  background: rgba(59, 130, 246, .08);
}

.option-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.option-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pass-rules {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.rule-item {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.rule-item:last-child {
  margin-bottom: 0
}

.rule-item.ok {
  color: var(--success)
}

.rule-item.error {
  color: var(--danger)
}

.strength-bar {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.strength-fill {
  width: 0%;
  height: 100%;
  background: var(--danger);
  transition: all .3s ease;
}

.strength-text {
  font-size: 13px;
  font-weight: 700;
  min-height: 18px;
}

.strength-text.weak {
  color: var(--danger)
}

.strength-text.medium {
  color: var(--warning)
}

.strength-text.strong {
  color: var(--success)
}

.pass-feedback {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.pass-feedback.ok {
  color: var(--success)
}

.pass-feedback.error {
  color: var(--danger)
}

.success-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .16);
  text-align: center;
  margin-bottom: 20px;
}

.success-box i {
  font-size: 28px;
  color: var(--success);
  margin-bottom: 12px;
}

.success-box h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.success-box p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 991px) {
  .auth-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 30px 20px;
  }

  .auth-form-wrap {
    max-width: 100%;
  }

  .auth-mobile-logo {
    display: flex;
  }
}

@media (max-width: 576px) {
  .auth-page {
    padding: 0
  }

  .auth-card {
    border-radius: 0;
    min-height: 100vh;
  }

  .auth-right {
    padding: 24px 16px;
  }

  .step-title {
    font-size: 26px;
  }

  .token-wrap {
    gap: 8px;
  }

  .token-input {
    width: 44px;
    height: 52px;
    border-radius: 14px;
    font-size: 20px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .btn-row {
    flex-direction: column;
  }
}

.x-turnstile-wrap {
  width: 100%;
  margin: 14px 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.x-turnstile-wrap .cf-turnstile {
  transform: scale(.92);
  transform-origin: center;
}

@media (max-width: 420px) {
  .x-turnstile-wrap .cf-turnstile {
    transform: scale(.86);
  }
}

/* ==============================
   SELECTS XPERTECH AUTH
============================== */

.auth-page select.x-input-plain {
  width: 100%;
  height: 56px;
  padding: 0 46px 0 16px;

  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, .38);

  background:
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .88));

  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;

  outline: none;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 0 0 0 rgba(59, 130, 246, 0);

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

/* Flechita custom */
.auth-page .form-group {
  position: relative;
}

.auth-page .form-group select.x-input-plain {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .88)),
    url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat, no-repeat;
  background-position: center, right 16px center;
  background-size: auto, 14px;
}

.auth-page select.x-input-plain:hover {
  border-color: rgba(96, 165, 250, .7);
}

.auth-page select.x-input-plain:focus {
  border-color: #3b82f6;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, .22),
    0 14px 32px rgba(15, 23, 42, .28);
}

/* Opciones del select nativo */
.auth-page select.x-input-plain option {
  background: #0f172a;
  color: #f8fafc;
  font-weight: 600;
  padding: 12px;
}

.auth-page select.x-input-plain option:checked {
  background: #2563eb;
  color: #ffffff;
}

.auth-page select.x-input-plain option:hover {
  background: #1e40af;
  color: #ffffff;
}

/* Placeholder visual */
.auth-page select.x-input-plain:invalid,
.auth-page select.x-input-plain option[value=""] {
  color: #94a3b8;
}

/* ==============================
   FIX INPUTS / SELECT DARK AUTH
============================== */

.auth-page .x-input,
.auth-page .x-input-plain {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .9)) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(59, 130, 246, .30) !important;
  box-shadow: none !important;
}

.auth-page .x-input:focus,
.auth-page .x-input-plain:focus {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(15, 23, 42, .92)) !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, .22),
    inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.auth-page .x-input::placeholder {
  color: rgba(148, 163, 184, .78) !important;
}

/* Autofill de Chrome */
.auth-page input.x-input:-webkit-autofill,
.auth-page input.x-input:-webkit-autofill:hover,
.auth-page input.x-input:-webkit-autofill:focus,
.auth-page input.x-input:-webkit-autofill:active {
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  border: 1px solid rgba(59, 130, 246, .35) !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

/* Inputs con icono */
.auth-page .x-input-group {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .9)) !important;
  border: 1px solid rgba(59, 130, 246, .30) !important;
}

.auth-page .x-input-group:focus-within {
  border-color: #3b82f6 !important;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, .22),
    inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.auth-page .x-input-group .x-input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ==============================
   FIX SELECT AUTOFILL / LIGHT MODE
============================== */

.auth-page select.x-input-plain,
.auth-page select.x-input-plain:focus,
.auth-page select.x-input-plain:active,
.auth-page select.x-input-plain:hover {
  background-color: #0f172a !important;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(15, 23, 42, .92)),
    url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: center, right 16px center !important;
  background-size: auto, 14px !important;

  color: #f8fafc !important;
  border: 1px solid rgba(59, 130, 246, .35) !important;
  box-shadow: none !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.auth-page select.x-input-plain:-webkit-autofill,
.auth-page select.x-input-plain:-webkit-autofill:hover,
.auth-page select.x-input-plain:-webkit-autofill:focus,
.auth-page select.x-input-plain:-webkit-autofill:active {
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  border: 1px solid rgba(59, 130, 246, .35) !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

.auth-page select.x-input-plain option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

/* =========================
   REGISTER VIEW / MOVING BACKGROUND
   basado en login
========================= */

html,
body {
  min-height: 100%;
}

body.x-register-view {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top center, rgba(20, 70, 140, .18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(0, 180, 255, .10), transparent 25%),
    linear-gradient(180deg, #031021 0%, #020b18 45%, #010814 100%);
}

/* Capas animadas */
body.x-register-view::before,
body.x-register-view::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Partículas pequeñas */
body.x-register-view::before {
  opacity: .42;
  background:
    radial-gradient(circle, rgba(80, 220, 255, .85) 0 2px, transparent 3px) 10% 20%/220px 220px,
    radial-gradient(circle, rgba(80, 220, 255, .55) 0 1.5px, transparent 3px) 40% 70%/260px 260px,
    radial-gradient(circle, rgba(80, 220, 255, .70) 0 2px, transparent 3px) 80% 30%/240px 240px,
    radial-gradient(circle, rgba(80, 220, 255, .35) 0 1.2px, transparent 3px) 70% 85%/280px 280px,
    radial-gradient(circle, rgba(80, 220, 255, .60) 0 1.8px, transparent 3px) 25% 90%/300px 300px;
  filter: blur(.2px);
  animation: xRegisterFloatA 45s ease-in-out infinite alternate;
}

/* Partículas glow grandes */
body.x-register-view::after {
  opacity: .22;
  background:
    radial-gradient(circle, rgba(90, 240, 255, .45) 0 6px, transparent 18px) 15% 35%/520px 520px,
    radial-gradient(circle, rgba(90, 240, 255, .35) 0 5px, transparent 16px) 75% 15%/560px 560px,
    radial-gradient(circle, rgba(90, 240, 255, .30) 0 4px, transparent 14px) 55% 80%/600px 600px;
  filter: blur(1px);
  animation: xRegisterFloatB 80s ease-in-out infinite alternate;
  animation-delay: -19s;
}

/* Profundidad extra */
body.x-register-view>.x-depth {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .16;
  background:
    radial-gradient(circle, rgba(120, 255, 255, .35) 0 1px, transparent 2px) 20% 40%/340px 340px,
    radial-gradient(circle, rgba(120, 255, 255, .25) 0 1px, transparent 2px) 70% 60%/420px 420px;
  animation: xRegisterFloatC 140s linear infinite alternate;
}

/* Todo el contenido por encima del fondo */
body.x-register-view .x-auth-header,
body.x-register-view .auth-page {
  position: relative;
  z-index: 1;
}

/* Quita cualquier fondo sólido viejo de auth-page */
body.x-register-view .auth-page {
  background: transparent !important;
}

/* Animaciones */
@keyframes xRegisterFloatA {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -120px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes xRegisterFloatB {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-80px, -160px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes xRegisterFloatC {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-40px, -60px, 0);
  }
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {

  body.x-register-view::before,
  body.x-register-view::after,
  body.x-register-view>.x-depth {
    animation: none !important;
  }
}

/* ==============================
   LEGAL MODALS
============================== */

.x-legal-popup {
  border-radius: 26px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .16), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55) !important;
  overflow: hidden !important;
}

.x-legal-title {
  color: #f8fafc !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  padding-top: 8px !important;
}

.x-legal-container {
  margin: 0 !important;
  padding: 0 26px 4px !important;
}

.x-legal-modal {
  text-align: left;
  max-height: 58vh;
  overflow-y: auto;
  padding: 4px 4px 8px;
  color: #cbd5e1;
}

.x-legal-modal::-webkit-scrollbar {
  width: 8px;
}

.x-legal-modal::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, .6);
  border-radius: 999px;
}

.x-legal-modal::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, .35);
  border-radius: 999px;
}

.x-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(96, 165, 250, .22);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
}

.x-legal-modal h3 {
  margin: 16px 0 6px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
}

.x-legal-modal p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.65;
}

.x-legal-updated {
  margin-top: 20px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  color: #94a3b8 !important;
  font-size: 12.5px !important;
}

@media (max-width: 576px) {
  .x-legal-popup {
    width: calc(100% - 22px) !important;
  }

  .x-legal-container {
    padding: 0 18px 4px !important;
  }

  .x-legal-modal {
    max-height: 62vh;
  }
}

@media (min-width: 1600px) {
  .auth-shell {
    max-width: 1320px;
  }

  .auth-grid {
    min-height: 760px;
  }

  .auth-form-wrap {
    max-width: 500px;
  }

  .auth-left-inner {
    max-width: 470px;
  }

  .auth-title {
    font-size: 44px;
  }

  .auth-card {
    border-radius: 28px;
  }
}