/* ============================================================
   VASTROX — Auth experience v2 ("Mission Control")
   A self-contained design system for /login + /register.
   Namespaced .vxa-* so it never collides with the dashboard.
   ============================================================ */

.vxa-body {
  margin: 0; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  font-family: 'Inter', system-ui, sans-serif;
  color: #c2cee2; background: #04060d; overflow-x: hidden; position: relative;
}

/* animated aurora field */
.vxa-body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% -10%, rgba(47, 107, 255, .26), transparent 60%),
    radial-gradient(50% 45% at 8% 6%, rgba(99, 102, 241, .18), transparent 58%),
    radial-gradient(55% 50% at 50% 116%, rgba(34, 211, 238, .12), transparent 60%),
    #04060d;
}
.vxa-body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 170, 220, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 220, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
          mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
}
.vxa-orb { position: fixed; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none; }
.vxa-orb.o1 { width: 420px; height: 420px; left: -120px; top: 8%; background: radial-gradient(circle, rgba(47, 107, 255, .55), transparent 70%); animation: vxaFloat 16s ease-in-out infinite; }
.vxa-orb.o2 { width: 360px; height: 360px; right: -100px; bottom: 4%; background: radial-gradient(circle, rgba(34, 211, 238, .4), transparent 70%); animation: vxaFloat 20s ease-in-out infinite reverse; }
@keyframes vxaFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(26px, -32px); } }

/* the floating console */
.vxa-console {
  position: relative; z-index: 1;
  width: 100%; max-width: 1080px;
  display: grid; grid-template-columns: 1.04fr .96fr;
  background: linear-gradient(180deg, rgba(14, 22, 38, .78), rgba(7, 11, 20, .82));
  border: 1px solid rgba(140, 170, 220, .16);
  border-radius: 30px; overflow: hidden;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 90px -30px rgba(47, 107, 255, .5);
  animation: vxaRise .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes vxaRise { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- LEFT: live mission-control stage ---------- */
.vxa-stage {
  position: relative; padding: clamp(28px, 3.4vw, 46px);
  display: flex; flex-direction: column; gap: 26px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(47, 107, 255, .20), transparent 55%),
    linear-gradient(160deg, rgba(47, 107, 255, .07), rgba(34, 211, 238, .03));
  border-right: 1px solid rgba(140, 170, 220, .12);
}
.vxa-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.vxa-brand img { height: 34px; width: auto; display: block; }
.vxa-brand .vxa-wordmark { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .5px; color: #fff; }

.vxa-stage-copy h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; margin: 0 0 12px; color: #fff;
  letter-spacing: -.5px;
}
.vxa-stage-copy h2 .grad { background: linear-gradient(100deg, #6fa3ff, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.vxa-stage-copy p { margin: 0; font-size: 15px; line-height: 1.65; color: #9fb0c9; max-width: 42ch; }

/* faux live panel */
.vxa-live {
  margin-top: auto;
  background: linear-gradient(180deg, rgba(8, 13, 24, .8), rgba(10, 16, 30, .6));
  border: 1px solid rgba(140, 170, 220, .14); border-radius: 18px;
  padding: 16px 16px 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.vxa-live-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9fb0c9; margin-bottom: 14px; }
.vxa-live-head .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: vxaPulse 2s infinite; }
.vxa-live-head b { color: #eaf1fb; font-weight: 650; }
.vxa-live-head .ms { margin-left: auto; color: #5f6f8c; font-variant-numeric: tabular-nums; }
@keyframes vxaPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.vxa-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.vxa-meter { background: rgba(140, 170, 220, .06); border: 1px solid rgba(140, 170, 220, .1); border-radius: 12px; padding: 10px 11px; }
.vxa-meter .lab { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: #74849f; }
.vxa-meter .val { font-size: 18px; font-weight: 750; color: #eaf1fb; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.vxa-bar { height: 5px; border-radius: 4px; background: rgba(140, 170, 220, .14); overflow: hidden; }
.vxa-bar i { display: block; height: 100%; border-radius: 4px; background: #003efd; }
.vxa-bar.b1 i { animation: vxaB1 4.5s ease-in-out infinite; }
.vxa-bar.b2 i { animation: vxaB2 5.5s ease-in-out infinite; }
.vxa-bar.b3 i { animation: vxaB3 6.5s ease-in-out infinite; }
@keyframes vxaB1 { 0%, 100% { width: 38%; } 50% { width: 64%; } }
@keyframes vxaB2 { 0%, 100% { width: 58%; } 50% { width: 41%; } }
@keyframes vxaB3 { 0%, 100% { width: 24%; } 50% { width: 52%; } }

.vxa-regions { display: flex; flex-wrap: wrap; gap: 7px; }
.vxa-region { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #c2cee2; background: rgba(140, 170, 220, .07); border: 1px solid rgba(140, 170, 220, .12); border-radius: 999px; padding: 4px 10px 4px 8px; }
.vxa-region::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 7px #22c55e; }
.vxa-region.amber::before { background: #f59e0b; box-shadow: 0 0 7px #f59e0b; }

.vxa-stage-foot { font-size: 12px; color: #5f6f8c; }

/* ---------- RIGHT: form panel ---------- */
.vxa-panel { padding: clamp(28px, 3.2vw, 46px); display: flex; flex-direction: column; }
.vxa-mini-brand { display: none; margin-bottom: 22px; }
.vxa-mini-brand img { height: 32px; }
.vxa-mini-brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 19px; color: #fff; }

.vxa-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #6fa3ff; margin-bottom: 12px; }
.vxa-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #6fa3ff; box-shadow: 0 0 9px #6fa3ff; }
.vxa-head h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); color: #fff; margin: 0 0 6px; letter-spacing: -.4px; }
.vxa-head .lead { font-size: 14px; color: #93a3bf; margin: 0 0 22px; }

.vxa-form { display: flex; flex-direction: column; gap: 15px; }
.vxa-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

/* floating-label field */
.vxa-field { position: relative; }
.vxa-field > input,
.vxa-field > .vxa-input {
  width: 100%; box-sizing: border-box;
  height: 54px; padding: 22px 14px 8px;
  background: rgba(8, 13, 24, .7); color: #eef3fb;
  border: 1px solid rgba(140, 170, 220, .18); border-radius: 13px;
  font-size: 14.5px; font-family: inherit; outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.vxa-field > input::placeholder { color: transparent; }
.vxa-field > input:focus { border-color: #4d8bff; background: rgba(8, 13, 24, .95); box-shadow: 0 0 0 4px rgba(47, 107, 255, .22); }
.vxa-field > label {
  position: absolute; left: 14px; top: 17px;
  font-size: 14.5px; color: #74849f; pointer-events: none;
  transition: transform .15s ease, color .15s ease, font-size .15s ease;
  transform-origin: left top;
}
.vxa-field > input:focus + label,
.vxa-field > input:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.78); color: #6fa3ff; }
.vxa-field .hint { color: #5f6f8c; font-weight: 400; font-size: 12px; }

/* password row */
.vxa-pw { position: relative; }
.vxa-pw .vxa-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: rgba(140, 170, 220, .1); border: 0; border-radius: 8px; cursor: pointer;
  color: #9fb0c9; font-size: 11.5px; font-weight: 600; padding: 7px 10px;
}
.vxa-pw .vxa-eye:hover { background: rgba(140, 170, 220, .18); color: #eaf1fb; }
.vxa-pw > input { padding-right: 64px; }

/* strength meter */
.vxa-meter-wrap { margin-top: 8px; }
.vxa-pw-meter { height: 5px; border-radius: 4px; background: rgba(140, 170, 220, .14); overflow: hidden; }
.vxa-pw-meter i { display: block; height: 100%; width: 6%; border-radius: 4px; background: #ef4444; transition: width .25s ease, background .25s ease; }
.vxa-pw-hint { font-size: 11.5px; color: #74849f; margin-top: 5px; }

/* country combobox re-skin (partial outputs .vx-select-*) */
.vxa-panel .vx-select-btn {
  height: 54px; border-radius: 13px; background: rgba(8, 13, 24, .7);
  border: 1px solid rgba(140, 170, 220, .18); color: #eef3fb;
}
.vxa-panel .vx-select-btn:hover { border-color: rgba(140, 170, 220, .3); }
.vxa-panel [data-vx-select].open .vx-select-btn { border-color: #4d8bff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .22); }
.vxa-static-label { display: block; font-size: 12px; font-weight: 600; color: #93a3bf; margin: 0 0 7px 2px; }

/* standalone input (visible placeholder, no floating label) */
.vxa-inp {
  width: 100%; box-sizing: border-box; height: 54px; padding: 0 14px;
  background: rgba(8, 13, 24, .7); color: #eef3fb;
  border: 1px solid rgba(140, 170, 220, .18); border-radius: 13px;
  font-size: 14.5px; font-family: inherit; outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.vxa-inp::placeholder { color: #5f6f8c; }
.vxa-inp:focus { border-color: #4d8bff; background: rgba(8, 13, 24, .95); box-shadow: 0 0 0 4px rgba(47, 107, 255, .22); }

/* phone row */
.vxa-phone { display: flex; gap: 9px; }
.vxa-phone .vxa-dial { flex: none; height: 54px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 13px; background: rgba(140, 170, 220, .08); border: 1px solid rgba(140, 170, 220, .18); color: #c2cee2; font-size: 14px; font-variant-numeric: tabular-nums; }
.vxa-phone .vxa-inp { flex: 1; }

/* row: remember + forgot */
.vxa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 2px; }
.vxa-check { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: #c2cee2; cursor: pointer; user-select: none; }
.vxa-check input { width: 17px; height: 17px; accent-color: #2f6bff; }
.vxa-check.terms { align-items: flex-start; line-height: 1.5; }
.vxa-check.terms input { margin-top: 1px; }
.vxa-check a, .vxa-link { color: #6fa3ff; text-decoration: none; font-weight: 600; }
.vxa-check a:hover, .vxa-link:hover { text-decoration: underline; }

/* primary button */
.vxa-btn {
  position: relative; overflow: hidden;
  width: 100%; height: 54px; border: 0; border-radius: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: #fff;
  background: #003efd;
  box-shadow: 0 14px 34px -12px rgba(47, 107, 255, .8);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  margin-top: 4px;
}
.vxa-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(47, 107, 255, .95); filter: brightness(1.05); }
.vxa-btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); transition: left .55s ease; }
.vxa-btn:hover::after { left: 130%; }
.vxa-btn svg { width: 18px; height: 18px; }

/* divider + social (partial outputs .social-*) */
.vxa-sep { display: flex; align-items: center; gap: 14px; margin: 20px 0 4px; color: #5f6f8c; font-size: 12px; }
.vxa-sep::before, .vxa-sep::after { content: ""; flex: 1; height: 1px; background: rgba(140, 170, 220, .14); }

.vxa-panel .social-login { margin-top: 18px; }
.vxa-panel .social-divider { display: flex; align-items: center; gap: 14px; color: #5f6f8c; font-size: 12px; margin: 4px 0 14px; }
.vxa-panel .social-divider::before, .vxa-panel .social-divider::after { content: ""; flex: 1; height: 1px; background: rgba(140, 170, 220, .14); }
.vxa-panel .social-divider span { white-space: nowrap; }
.vxa-panel .social-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 11px; }
.vxa-panel .social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; width: 100%; border-radius: 13px;
  background: rgba(140, 170, 220, .06); border: 1px solid rgba(140, 170, 220, .16);
  color: #eaf1fb; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.vxa-panel .social-btn:hover { background: rgba(140, 170, 220, .12); border-color: rgba(140, 170, 220, .28); transform: translateY(-1px); }

/* captcha + flash */
.vxa-panel .vx-captcha { margin: 4px 0 0; min-height: 0; }
.vxa-panel .flash { border-radius: 12px; margin-bottom: 14px; }

.vxa-alt { margin: 20px 0 0; text-align: center; font-size: 14px; color: #93a3bf; }
.vxa-alt a { color: #6fa3ff; font-weight: 700; text-decoration: none; }
.vxa-alt a:hover { text-decoration: underline; }

.vxa-ref { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 13px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .26); color: #b9f6ce; }

/* form validation errors (from $errors) */
.vxa-errors { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); color: #fecaca; border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.vxa-errors ul { margin: 6px 0 0; padding-left: 18px; }

/* scrollable panel for the longer register form */
.vxa-panel.is-scroll { max-height: 92vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(140, 170, 220, .25) transparent; }
.vxa-panel.is-scroll::-webkit-scrollbar { width: 7px; }
.vxa-panel.is-scroll::-webkit-scrollbar-thumb { background: rgba(140, 170, 220, .22); border-radius: 4px; }

/* ---------- compatibility skin for any legacy .pform auth view (e.g. 2FA) ---------- */
.vxa-panel .pform { display: flex; flex-direction: column; gap: 15px; }
.vxa-panel .pform .pfield { display: flex; flex-direction: column; gap: 7px; }
.vxa-panel .pform .pfield > label { font-size: 12px; font-weight: 600; color: #93a3bf; margin-left: 2px; }
.vxa-panel .pform .pfield input,
.vxa-panel .pform .pfield select,
.vxa-panel .pform textarea {
  height: 54px; box-sizing: border-box; padding: 0 14px;
  background: rgba(8, 13, 24, .7); color: #eef3fb;
  border: 1px solid rgba(140, 170, 220, .18); border-radius: 13px;
  font-size: 14.5px; font-family: inherit; outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.vxa-panel .pform textarea { height: auto; padding: 12px 14px; }
.vxa-panel .pform .pfield input::placeholder { color: #5f6f8c; }
.vxa-panel .pform .pfield input:focus,
.vxa-panel .pform .pfield select:focus,
.vxa-panel .pform textarea:focus { border-color: #4d8bff; background: rgba(8, 13, 24, .95); box-shadow: 0 0 0 4px rgba(47, 107, 255, .22); }
.vxa-panel .pform .btn,
.vxa-panel .pform .btn-primary {
  height: 54px; border: 0; border-radius: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: #fff;
  background: #003efd;
  box-shadow: 0 14px 34px -12px rgba(47, 107, 255, .8); width: 100%; margin-top: 4px;
  transition: transform .15s ease, filter .15s ease;
}
.vxa-panel .pform .btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.vxa-panel h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); color: #fff; margin: 0 0 6px; letter-spacing: -.4px; }
.vxa-panel .lead { font-size: 14px; color: #93a3bf; margin: 0 0 22px; }
.vxa-panel .alt { margin: 20px 0 0; text-align: center; font-size: 14px; color: #93a3bf; }
.vxa-panel .alt a { color: #6fa3ff; font-weight: 700; text-decoration: none; }
.vxa-panel .alt a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .vxa-console { grid-template-columns: 1fr; max-width: 520px; }
  .vxa-stage { display: none; }
  .vxa-mini-brand { display: flex; align-items: center; gap: 10px; }
}
@media (max-width: 520px) {
  .vxa-grid2 { grid-template-columns: 1fr; }
  .vxa-panel { padding: 26px 20px; }
}
