:root {
  --blue-950: #05245e;
  --blue-800: #0756b4;
  --blue-600: #0878df;
  --blue-500: #0a8bf0;
  --green-700: #078b62;
  --green-500: #10b981;
  --green-400: #22c98b;
  --ink: #10234b;
  --muted: #687797;
  --line: #dce6f3;
  --surface: #ffffff;
  --soft: #f4f8fd;
  --danger: #c53542;
  --shadow: 0 30px 80px rgba(13, 67, 135, .16);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eef6ff; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }

.market-auth {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background: #eef6ff;
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--surface);
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding: clamp(30px, 3.2vw, 62px) clamp(38px, 5vw, 96px) 42px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 17%, rgba(34, 201, 139, .25), transparent 25%),
    linear-gradient(145deg, #06419a 0%, #0878df 48%, #079e76 100%);
}

.auth-showcase::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000);
}

.auth-showcase::after {
  position: absolute;
  right: -15%;
  bottom: -18%;
  z-index: -1;
  width: 75%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.04), 0 0 0 145px rgba(255,255,255,.03);
}

.auth-brand, .mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #fff;
  text-decoration: none;
}

.auth-brand > span:last-child, .mobile-brand > span:last-child { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 5px; line-height: 1; }
.auth-brand b, .mobile-brand b { color: #fff; font-size: 19px; font-weight: 800; }
.auth-brand strong, .mobile-brand strong { color: #75f0bd; font-size: 19px; font-weight: 800; }
.auth-brand small { grid-column: 1 / -1; margin-top: 5px; color: rgba(255,255,255,.72); font-size: 8px; font-weight: 600; }

.brand-chart { position: relative; display: flex; align-items: flex-end; gap: 3px; width: 35px; height: 35px; padding-bottom: 3px; }
.brand-chart i { display: block; width: 6px; border-radius: 2px 2px 0 0; background: linear-gradient(#77f2bd, #fff); box-shadow: 0 0 12px rgba(87, 235, 175, .35); }
.brand-chart i:nth-child(1) { height: 10px; }.brand-chart i:nth-child(2) { height: 17px; }.brand-chart i:nth-child(3) { height: 24px; }.brand-chart i:nth-child(4) { height: 32px; }
.brand-chart::after { position: absolute; top: 1px; right: 0; width: 19px; height: 11px; content: ""; border-top: 3px solid #7af0bd; transform: rotate(-37deg); }

.showcase-copy { z-index: 2; max-width: 680px; margin-top: clamp(72px, 10vh, 140px); animation: reveal-up .8s cubic-bezier(.2,.75,.25,1) both; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); color: #e9fff7; font-size: 12px; font-weight: 700; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #6df0b5; box-shadow: 0 0 0 5px rgba(109,240,181,.14); animation: pulse 2s infinite; }
.showcase-copy h1 { max-width: 650px; margin: 24px 0 18px; color: #fff; font-size: clamp(42px, 4.1vw, 72px); font-weight: 800; line-height: 1.08; letter-spacing: 0; }
.showcase-copy h1 em { display: block; color: #76efbd; font-style: normal; }
.showcase-copy p { max-width: 570px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(15px, 1.15vw, 19px); line-height: 1.75; }

.growth-visual { position: relative; flex: 1; min-height: 260px; margin: 20px -30px 0; perspective: 900px; }
.market-grid { position: absolute; inset: 12% 0 -45%; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 58px 40px; transform: rotateX(62deg); transform-origin: center top; }
.growth-line { position: absolute; inset: 10% 10% 10% 4%; transform: skewY(-12deg); }
.growth-line::before, .growth-line::after { position: absolute; inset: 38% 5% auto 3%; height: 4px; content: ""; border-radius: 8px; background: linear-gradient(90deg, transparent, #7bf2bf 16%, #fff 65%, #72f1b9); box-shadow: 0 0 25px rgba(107,242,184,.8); transform: rotate(-9deg); }
.growth-line::after { inset: 21% 5% auto 58%; transform: rotate(-35deg); }
.growth-line span { position: absolute; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: #16ba83; box-shadow: 0 0 0 7px rgba(87,236,176,.2), 0 0 18px #5decb2; animation: node-glow 2.4s infinite alternate; }
.growth-line span:nth-child(1) { left: 16%; top: 44%; }.growth-line span:nth-child(2) { left: 39%; top: 34%; animation-delay: .3s; }.growth-line span:nth-child(3) { left: 63%; top: 22%; animation-delay: .6s; }.growth-line span:nth-child(4) { right: 5%; top: -1%; animation-delay: .9s; }

.floating-stat { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.25); background: rgba(4,54,128,.44); box-shadow: 0 20px 40px rgba(2,36,88,.22); backdrop-filter: blur(16px); animation: float 5s ease-in-out infinite; }
.stat-primary { top: 21%; left: 12%; display: grid; min-width: 190px; padding: 18px 20px; border-radius: 8px; }
.stat-primary small { color: rgba(255,255,255,.7); font-size: 11px; }.stat-primary b { margin: 4px 0; color: #fff; font-size: 25px; }.stat-primary span { color: #79f1be; font-size: 11px; font-weight: 700; }
.stat-secure { right: 8%; bottom: 15%; display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-radius: 8px; animation-delay: -2.5s; }
.stat-secure .shield { display: grid; place-items: center; width: 36px; height: 40px; color: #fff; font-weight: 800; background: linear-gradient(145deg, #20cb91, #079269); clip-path: polygon(50% 0, 94% 17%, 86% 73%, 50% 100%, 14% 73%, 6% 17%); }
.stat-secure div { display: grid; gap: 3px; }.stat-secure b { font-size: 12px; }.stat-secure small { color: rgba(255,255,255,.65); font-size: 10px; }

.showcase-trust { z-index: 2; display: flex; flex-wrap: wrap; gap: 14px 26px; color: rgba(255,255,255,.78); font-size: 11px; }
.showcase-trust span { display: flex; align-items: center; gap: 7px; }.showcase-trust i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(103,240,181,.18); color: #72efba; font-style: normal; font-weight: 800; }

.auth-panel { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(45px, 5vw, 92px); background: #fff; }
.auth-panel::before { position: absolute; top: 0; right: 0; width: 220px; height: 220px; content: ""; opacity: .55; background: linear-gradient(135deg, rgba(8,120,223,.08), transparent 62%); clip-path: polygon(40% 0, 100% 0, 100% 100%); }
.mobile-brand { display: none; }
.auth-form-wrap { width: min(100%, 590px); margin: auto; animation: reveal-up .8s .12s cubic-bezier(.2,.75,.25,1) both; }
.auth-heading { margin-bottom: 32px; }
.auth-kicker { display: block; margin-bottom: 10px; color: var(--green-700); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.auth-heading h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 2.5vw, 43px); font-weight: 800; line-height: 1.2; letter-spacing: 0; }
.auth-heading p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.auth-alert > span { display: grid; flex: 0 0 20px; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-weight: 800; }
.auth-alert.error { border-color: #f3cbd0; background: #fff5f6; color: var(--danger); }.auth-alert.error > span { background: var(--danger); }
.auth-alert.success { border-color: #bce8d5; background: #f0fcf7; color: #087e5b; }.auth-alert.success > span { background: var(--green-500); }

.auth-form { display: grid; gap: 19px; }
.field-group { display: grid; gap: 8px; min-width: 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.field-label-row { display: flex; justify-content: space-between; gap: 16px; }
.muted-link { color: var(--blue-600); font-weight: 700; text-decoration: none; }
.field-control { display: flex; align-items: center; min-width: 0; height: 57px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 6px 20px rgba(16,67,130,.04); transition: border-color .25s, box-shadow .25s, transform .25s; }
.field-control:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(10,139,240,.1), 0 12px 30px rgba(10,105,190,.09); transform: translateY(-1px); }
.field-control input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 16px; color: var(--ink); background: transparent; font-size: 14px; }
.field-control input::placeholder { color: #a2aec2; }
.country-code { align-self: stretch; display: flex; align-items: center; padding: 0 16px; border-right: 1px solid var(--line); color: var(--blue-800); background: var(--soft); font-size: 13px; font-weight: 800; border-radius: 7px 0 0 7px; }
.field-icon { display: grid; place-items: center; width: 48px; height: 100%; color: var(--blue-500); font-size: 8px; }
.field-icon + input { padding-left: 0; }
.password-toggle { flex: 0 0 48px; height: 100%; border: 0; color: #9baac0; background: transparent; cursor: pointer; font-size: 17px; transition: color .2s, transform .2s; }
.password-toggle:hover, .password-toggle.active { color: var(--blue-600); transform: scale(1.08); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.check-control { display: flex; align-items: center; gap: 9px; width: fit-content; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; line-height: 1.6; }
.check-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-control > span { position: relative; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid #cbd7e7; border-radius: 4px; background: #fff; transition: background .2s, border-color .2s, transform .2s; }
.check-control input:checked + span { border-color: var(--blue-600); background: var(--blue-600); transform: scale(.94); }
.check-control input:checked + span::after { position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; content: ""; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-control a { color: var(--blue-600); text-decoration: none; }.terms { align-items: flex-start; width: 100%; }

.auth-submit { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; overflow: hidden; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(100deg, var(--blue-600), #0879df 52%, var(--green-500)); box-shadow: 0 15px 35px rgba(7,121,193,.24); cursor: pointer; font-size: 14px; font-weight: 800; transition: transform .25s, box-shadow .25s; }
.auth-submit::before { position: absolute; inset: 0; content: ""; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.35) 46%, transparent 65%); transform: translateX(-120%); transition: transform .7s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(7,121,193,.32); }.auth-submit:hover::before { transform: translateX(120%); }.auth-submit:active { transform: translateY(0); }
.auth-submit span, .auth-submit b { position: relative; }.auth-submit b { font-size: 20px; transition: transform .25s; }.auth-submit:hover b { transform: translateX(5px); }
.auth-switch { margin: 25px 0 0; color: var(--muted); text-align: center; font-size: 13px; }.auth-switch a { color: var(--blue-600); font-weight: 800; text-decoration: none; }
.auth-switch a:hover, .muted-link:hover, .check-control a:hover { text-decoration: underline; }
.auth-footer { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 45px; color: #9aa7b9; font-size: 10px; }.auth-footer a { text-decoration: none; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(109,240,181,0); } }
@keyframes node-glow { to { box-shadow: 0 0 0 10px rgba(87,236,176,0), 0 0 26px #5decb2; } }

@media (min-width: 1800px) {
  .auth-showcase { padding-left: max(96px, calc((100vw - 1700px) / 2)); }
  .auth-panel { padding-right: max(92px, calc((100vw - 1800px) / 2)); }
  .auth-form-wrap { width: min(100%, 650px); }
}

@media (max-width: 1050px) {
  .auth-shell { grid-template-columns: minmax(0, .9fr) minmax(450px, 1.1fr); }
  .auth-showcase { padding: 36px; }.showcase-copy h1 { font-size: 42px; }.showcase-trust { gap: 10px; }.growth-visual { margin-inline: -20px; }
  .auth-panel { padding: 52px 44px; }
}

@media (max-width: 780px) {
  .auth-shell { display: block; min-height: 100dvh; background: linear-gradient(155deg, #edf7ff, #fff 35%, #f2fbf7); }
  .auth-showcase { display: none; }
  .auth-panel { justify-content: flex-start; min-height: 100dvh; padding: max(26px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); background: transparent; }
  .auth-panel::before { width: 170px; height: 170px; }
  .mobile-brand { display: inline-flex; margin-bottom: 54px; color: var(--ink); }
  .mobile-brand b { color: var(--blue-800); }.mobile-brand strong { color: var(--green-700); }.mobile-brand .brand-chart i { background: linear-gradient(var(--green-400), var(--blue-600)); }.mobile-brand .brand-chart::after { border-color: var(--green-500); }
  .auth-form-wrap { width: min(100%, 520px); margin: 0 auto; }.auth-heading { margin-bottom: 28px; }.auth-heading h2 { font-size: 31px; }
  .auth-footer { margin-top: auto; padding-top: 42px; }
}

@media (max-width: 520px) {
  .auth-panel { padding-inline: 18px; }.mobile-brand { margin-bottom: 42px; }.mobile-brand b, .mobile-brand strong { font-size: 16px; }
  .auth-heading h2 { font-size: 28px; }.auth-heading p { line-height: 1.6; }.auth-form { gap: 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }.field-control { height: 55px; }.auth-submit { min-height: 56px; }
  .auth-footer { flex-wrap: wrap; gap: 9px 14px; }.auth-footer span { flex-basis: 100%; text-align: center; }
}

@media (max-height: 760px) and (min-width: 781px) {
  .auth-showcase { min-height: 650px; padding-top: 28px; padding-bottom: 28px; }.showcase-copy { margin-top: 46px; }.showcase-copy h1 { font-size: 42px; margin-block: 16px 12px; }.growth-visual { min-height: 190px; }
  .auth-panel { padding-block: 34px; }.auth-heading { margin-bottom: 21px; }.auth-form { gap: 14px; }.field-control { height: 51px; }.auth-footer { margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.captcha-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 14px 22px;
  align-items: center;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  background: linear-gradient(120deg, #f5faff 0%, #fff 55%, #effcf7 100%);
  box-shadow: 0 12px 30px rgba(8, 86, 180, .08);
  animation: captcha-arrive .7s .3s cubic-bezier(.2,.75,.25,1) both;
}
.captcha-card::before { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 28%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); animation: captcha-sheen 5.5s 1.2s ease-in-out infinite; pointer-events: none; }
.captcha-copy { display: grid; gap: 3px; }
.captcha-copy strong { font-size: 14px; color: var(--ink); }
.captcha-copy small, .captcha-status { color: var(--muted); font-size: 11px; line-height: 1.45; }
.captcha-kicker { color: var(--green-700); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.captcha-challenge { display: flex; align-items: center; gap: 8px; }
.captcha-equation { min-width: 78px; color: var(--blue-950); font-size: 21px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.captcha-answer input { width: 58px; height: 44px; border: 1px solid #bad2ea; border-radius: 7px; outline: 0; background: #fff; color: var(--blue-950); text-align: center; font-size: 18px; font-weight: 800; transition: border-color .2s, box-shadow .2s, transform .2s; }
.captcha-answer input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(10,139,240,.12); transform: translateY(-1px); }
.captcha-refresh { width: 42px; height: 42px; padding: 0; border: 1px solid #c9dced; border-radius: 50%; background: #fff; color: var(--blue-600); cursor: pointer; font-size: 23px; line-height: 1; box-shadow: 0 6px 15px rgba(8,86,180,.1); transition: color .2s, border-color .2s, transform .3s, box-shadow .2s; }
.captcha-refresh:hover { color: var(--green-700); border-color: var(--green-500); box-shadow: 0 8px 20px rgba(16,185,129,.16); transform: rotate(45deg); }
.captcha-refresh:disabled { cursor: wait; opacity: .65; }
.captcha-card.is-refreshing .captcha-refresh { animation: captcha-spin .7s linear infinite; }
.captcha-status { grid-column: 1 / -1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes captcha-arrive { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes captcha-sheen { 0%,70%,100% { left: -40%; } 88% { left: 125%; } }
@keyframes captcha-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .captcha-card { grid-template-columns: 1fr; } .captcha-challenge { justify-content: space-between; } .captcha-status { grid-column: auto; } }