:root {
  --vm-primary: #ff6b00;
  --vm-primary-strong: #e95f00;
  --vm-primary-soft: rgba(255, 107, 0, .12);
  --vm-secondary: #7c3aed;
  --vm-success: #10b981;
  --vm-danger: #ef4444;
  --vm-warning: #f59e0b;
  --vm-info: #0ea5e9;

  --vm-bg: #080d16;
  --vm-bg-soft: #0c1320;
  --vm-surface: #111a2a;
  --vm-surface-2: #162235;
  --vm-surface-3: #1b2940;
  --vm-border: #273750;
  --vm-border-soft: rgba(148, 163, 184, .14);

  --vm-text: #f8fafc;
  --vm-text-soft: #cbd5e1;
  --vm-muted: #91a0b5;

  --vm-radius-xs: 8px;
  --vm-radius-sm: 12px;
  --vm-radius: 16px;
  --vm-radius-lg: 22px;
  --vm-radius-xl: 30px;

  --vm-shadow-sm: 0 10px 30px rgba(0, 0, 0, .14);
  --vm-shadow: 0 24px 70px rgba(0, 0, 0, .27);
  --vm-shadow-primary: 0 16px 40px rgba(255, 107, 0, .22);

  --vm-container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: dark; }

body.vm-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--vm-text);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 107, 0, .14), transparent 26%),
    radial-gradient(circle at 90% 88%, rgba(124, 58, 237, .12), transparent 25%),
    var(--vm-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.vm-page a { color: inherit; }

.vm-auth-shell {
  width: min(var(--vm-container), calc(100% - 40px));
  min-height: min(760px, calc(100dvh - 40px));
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, .88fr);
  overflow: hidden;
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-xl);
  background: rgba(17, 26, 42, .9);
  box-shadow: var(--vm-shadow);
}

.vm-auth-brand {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(255, 107, 0, .97), rgba(234, 88, 12, .94) 46%, rgba(124, 58, 237, .91));
}

.vm-auth-brand::before,
.vm-auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.vm-auth-brand::before {
  width: 460px;
  height: 460px;
  right: -250px;
  top: -210px;
  background: rgba(255,255,255,.10);
}
.vm-auth-brand::after {
  width: 360px;
  height: 360px;
  left: -210px;
  bottom: -210px;
  border: 1px solid rgba(255,255,255,.18);
}

.vm-brand-logo,
.vm-auth-copy,
.vm-auth-proof { position: relative; z-index: 1; }

.vm-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.045em;
  text-decoration: none;
}
.vm-brand-logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.vm-brand-logo span { opacity: .78; }

.vm-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
.vm-auth-copy h1 {
  max-width: 580px;
  margin: 20px 0 15px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: .99;
  letter-spacing: -.055em;
}
.vm-auth-copy > p {
  max-width: 540px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.75;
}

.vm-feature-list {
  display: grid;
  gap: 11px;
  margin: 30px 0 0;
}
.vm-feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.vm-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.14);
  font-size: 17px;
  font-weight: 800;
}
.vm-feature b { display: block; font-size: 13px; }
.vm-feature span { color: rgba(255,255,255,.66); font-size: 12px; }

.vm-auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 600;
}
.vm-auth-proof strong { color: white; }

.vm-auth-main {
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vm-auth-main.vm-auth-main-top { align-items: flex-start; overflow-y: auto; }

.vm-auth-form-wrap {
  width: 100%;
  max-width: 450px;
  margin: auto;
}
.vm-auth-form-wrap.vm-wide { max-width: 540px; }

.vm-auth-mobile-logo {
  display: none;
  margin: 0 0 28px;
  color: var(--vm-text);
}

.vm-kicker {
  margin: 0 0 8px;
  color: #fb923c;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.vm-title {
  margin: 0;
  font-size: clamp(27px, 3.2vw, 36px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.vm-subtitle {
  margin: 10px 0 30px;
  color: var(--vm-muted);
  line-height: 1.65;
  font-size: 14px;
}

.vm-form { width: 100%; }
.vm-form-section {
  margin: 0 0 26px;
  padding: 20px;
  border: 1px solid var(--vm-border-soft);
  border-radius: 20px;
  background: rgba(12,19,32,.52);
}
.vm-section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--vm-text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vm-section-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vm-primary);
  box-shadow: 0 0 0 5px rgba(255,107,0,.10);
}

.vm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vm-field { margin: 0 0 17px; }
.vm-field:last-child { margin-bottom: 0; }

.vm-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--vm-text-soft);
  font-size: 12px;
  font-weight: 750;
}
.vm-label small { color: var(--vm-muted); font-weight: 500; }

.vm-input-wrap { position: relative; }
.vm-input,
.vm-select,
.vm-textarea {
  width: 100%;
  border: 1px solid var(--vm-border);
  border-radius: 14px;
  background: var(--vm-surface-2);
  color: var(--vm-text);
  outline: none;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.vm-input,
.vm-select { height: 52px; padding: 0 15px; }
.vm-input.vm-with-action { padding-right: 52px; }
.vm-textarea { min-height: 105px; padding: 13px 15px; resize: vertical; }

.vm-input::placeholder,
.vm-textarea::placeholder { color: #718096; }

.vm-input:focus,
.vm-select:focus,
.vm-textarea:focus {
  border-color: var(--vm-primary);
  background: #19263b;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .11);
}
.vm-input[aria-invalid="true"] { border-color: var(--vm-danger); }

.vm-input-action {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--vm-muted);
  background: transparent;
  cursor: pointer;
}
.vm-input-action:hover { color: var(--vm-text); background: rgba(255,255,255,.05); }

.vm-field-hint {
  margin: 7px 0 0;
  color: var(--vm-muted);
  font-size: 11px;
  line-height: 1.5;
}
.vm-field-error {
  min-height: 16px;
  margin: 6px 0 0;
  color: #fca5a5;
  font-size: 11px;
}

.vm-check-row,
.vm-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.vm-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--vm-muted);
  font-size: 12px;
  line-height: 1.5;
}
.vm-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--vm-primary);
}
.vm-link {
  color: #fb923c !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.vm-link:hover { text-decoration: underline; }

.vm-btn {
  min-height: 52px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.vm-btn:hover { transform: translateY(-1px); }
.vm-btn:active { transform: translateY(0); }
.vm-btn:disabled { opacity: .62; cursor: wait; transform: none; }

.vm-btn-primary {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--vm-primary), #f97316);
  box-shadow: var(--vm-shadow-primary);
}
.vm-btn-secondary {
  color: var(--vm-text);
  background: var(--vm-surface-2);
  border: 1px solid var(--vm-border);
}

.vm-btn-loader {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: vm-spin .7s linear infinite;
}
@keyframes vm-spin { to { transform: rotate(360deg); } }

.vm-alert {
  display: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.55;
}
.vm-alert.is-visible { display: block; }
.vm-alert.is-error {
  color: #fecaca;
  background: rgba(239, 68, 68, .10);
  border: 1px solid rgba(239, 68, 68, .23);
}
.vm-alert.is-success {
  color: #a7f3d0;
  background: rgba(16, 185, 129, .10);
  border: 1px solid rgba(16, 185, 129, .24);
}
.vm-alert.is-info {
  color: #bae6fd;
  background: rgba(14, 165, 233, .09);
  border: 1px solid rgba(14, 165, 233, .22);
}

.vm-plan-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 15px 17px;
  border: 1px solid rgba(255,107,0,.25);
  border-radius: 16px;
  background: rgba(255,107,0,.075);
}
.vm-plan-card small { display: block; color: var(--vm-muted); margin-bottom: 3px; }
.vm-plan-card strong { font-size: 14px; }
.vm-plan-price { text-align: right; color: #fb923c; font-weight: 850; }
.vm-plan-price small { color: var(--vm-muted); font-weight: 500; }

.vm-referral {
  margin: -10px 0 22px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  color: #a7f3d0;
  font-size: 12px;
}

.vm-password-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin: 10px 0 0;
  color: var(--vm-muted);
  font-size: 11px;
}
.vm-rule::before { content: "•"; margin-right: 6px; }
.vm-rule.is-ok { color: #86efac; }

.vm-auth-footer {
  margin: 24px 0 0;
  color: var(--vm-muted);
  text-align: center;
  font-size: 12px;
}
.vm-auth-footer a {
  color: #fb923c;
  font-weight: 750;
  text-decoration: none;
}
.vm-auth-footer a:hover { text-decoration: underline; }

.vm-security-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 21px 0 0;
  color: var(--vm-muted);
  font-size: 11px;
  line-height: 1.55;
}
.vm-security-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #86efac;
  background: rgba(16,185,129,.1);
}

@media (max-width: 900px) {
  .vm-auth-shell {
    grid-template-columns: 1fr;
    width: min(560px, calc(100% - 24px));
    min-height: auto;
    margin: 12px auto;
  }
  .vm-auth-brand { display: none; }
  .vm-auth-main { min-height: calc(100dvh - 24px); padding: 34px 25px; }
  .vm-auth-main.vm-auth-main-top { min-height: auto; }
  .vm-auth-mobile-logo {
    display: inline-flex;
    color: var(--vm-text);
    text-decoration: none;
  }
}
@media (max-width: 560px) {
  .vm-auth-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .vm-auth-main { padding: 28px 20px; }
  .vm-form-section { padding: 16px; border-radius: 17px; }
  .vm-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .vm-between { align-items: flex-start; }
  .vm-password-rules { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
