:root {
  color-scheme: dark;
  --bg: #040716;
  --panel: #081126;
  --panel-soft: #0b1730;
  --text: #f5f7ff;
  --muted: #91a0b9;
  --stroke: rgba(112, 145, 211, 0.18);
  --blue: #238cff;
  --purple: #963bf0;
  --green: #24d995;
  --red: #ff6078;
  --radius: 22px;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 15%, rgba(39, 113, 255, 0.13), transparent 27%),
    radial-gradient(circle at 92% 83%, rgba(145, 52, 236, 0.13), transparent 28%),
    linear-gradient(145deg, #030512, #050a1a 56%, #050718);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 10px;
  inset-inline-start: 12px;
  padding: 9px 14px;
  border-radius: 9px;
  color: #fff;
  background: #176fe8;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.signup-page {
  position: relative;
  min-height: 100vh;
}

.signup-page::before {
  content: "";
  position: fixed;
  pointer-events: none;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(97, 135, 207, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 135, 207, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.signup-header {
  position: relative;
  z-index: 5;
  width: min(100% - 40px, 1220px);
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8faff;
  font-size: 23px;
  font-weight: 900;
  direction: ltr;
}

.brand > span:last-child span {
  color: #a44aff;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-block;
  filter: drop-shadow(0 0 13px rgba(67, 119, 255, 0.55));
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 22px;
  height: 11px;
  border-radius: 8px 3px 8px 3px;
  transform: skewX(-18deg) rotate(-37deg);
}

.brand-mark i:first-child {
  inset-block-start: 5px;
  inset-inline-start: 2px;
  background: linear-gradient(90deg, #7141f2, #159cff);
}

.brand-mark i:last-child {
  inset-block-start: 16px;
  inset-inline-start: 10px;
  background: linear-gradient(90deg, #8d32ec, #27c8fb);
}

.signup-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signup-language,
.back-home {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  color: #b8c5d9;
  background: rgba(8, 16, 35, 0.76);
  font-size: 11px;
}

.signup-language select {
  width: 75px;
  padding: 5px 1px;
  border: 0;
  outline: 0;
  color: #e5ebf7;
  background: transparent;
  cursor: pointer;
}

.signup-language option {
  color: #edf2ff;
  background: #091126;
}

.back-home {
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-home:hover {
  color: #fff;
  border-color: rgba(76, 143, 255, 0.55);
  transform: translateY(-1px);
}

.signup-main {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1220px);
  margin-inline: auto;
  padding: 9px 0 38px;
}

.signup-shell {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  grid-template-areas: "visual form";
  overflow: hidden;
  border: 1px solid rgba(103, 140, 216, 0.2);
  border-radius: 26px;
  direction: ltr;
  background: rgba(5, 11, 27, 0.88);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48), inset 0 1px rgba(126, 166, 240, 0.06);
}

.signup-visual {
  position: relative;
  grid-area: visual;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: 45px 42px 37px;
  direction: rtl;
  background:
    radial-gradient(circle at 48% 48%, rgba(29, 118, 255, 0.25), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(147, 55, 239, 0.19), transparent 31%),
    linear-gradient(145deg, rgba(7, 19, 44, 0.98), rgba(5, 11, 29, 0.97));
}

.signup-visual::before,
.signup-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.signup-visual::before {
  width: 310px;
  height: 310px;
  inset-block-start: 31%;
  inset-inline-start: 31%;
  border: 1px solid rgba(62, 137, 255, 0.13);
  box-shadow: 0 0 70px rgba(39, 104, 244, 0.09), inset 0 0 70px rgba(127, 48, 235, 0.08);
}

.signup-visual::after {
  width: 520px;
  height: 520px;
  inset-block-start: 23%;
  inset-inline-start: 9%;
  border: 1px dashed rgba(104, 75, 213, 0.1);
}

.visual-copy,
.visual-art,
.signup-benefits {
  position: relative;
  z-index: 2;
}

.visual-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 12px;
  color: #88aaf0;
  font-size: 10px;
}

.visual-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(36, 217, 149, 0.1), 0 0 13px var(--green);
}

.visual-copy h2 {
  max-width: 570px;
  margin: 0 0 11px;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.42;
  letter-spacing: -1px;
}

.visual-copy h2 span {
  background: linear-gradient(90deg, #9e48f4, #4d7cff, #2bc9f7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.visual-copy p {
  max-width: 540px;
  margin: 0;
  color: #94a3bb;
  font-size: 11px;
  line-height: 1.95;
}

.visual-art {
  min-height: 295px;
  display: grid;
  place-items: center;
}

.visual-art-main {
  width: min(100%, 485px);
  height: min(100%, 310px);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 25px 42px rgba(20, 70, 212, 0.33));
}

.signup-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.signup-benefits article {
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(92, 132, 210, 0.14);
  border-radius: 11px;
  background: rgba(8, 20, 44, 0.74);
}

.signup-benefits img {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.signup-benefits h3 {
  margin: 0 0 4px;
  color: #e8eef9;
  font-size: 9px;
}

.signup-benefits p {
  margin: 0;
  color: #71809a;
  font-size: 7px;
  line-height: 1.65;
}

.signup-form-panel {
  grid-area: form;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 45px;
  direction: rtl;
  border-inline-start: 1px solid rgba(106, 143, 211, 0.13);
  background:
    radial-gradient(circle at 100% 0, rgba(142, 52, 236, 0.08), transparent 30%),
    linear-gradient(150deg, rgba(9, 18, 39, 0.97), rgba(5, 11, 26, 0.98));
}

.form-intro {
  position: relative;
  margin-block-end: 24px;
  padding-inline-start: 62px;
}

.form-icon {
  position: absolute;
  inset-block-start: 1px;
  inset-inline-start: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 132, 243, 0.25);
  border-radius: 14px;
  background: rgba(24, 56, 112, 0.26);
}

.form-icon img {
  width: 31px;
  height: 31px;
  display: block;
  object-fit: contain;
}

.form-kicker {
  display: block;
  margin-block-end: 5px;
  color: #6d91db;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.form-intro h1 {
  margin: 0 0 7px;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.45;
}

.form-intro p {
  margin: 0;
  color: #8492aa;
  font-size: 10px;
  line-height: 1.8;
}

#signup-form {
  display: grid;
  gap: 16px;
}

#signup-form.is-otp-step [data-registration-field] {
  display: none !important;
}

.otp-panel[hidden] {
  display: none;
}

.otp-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 25px 20px 20px;
  border: 1px solid rgba(79, 132, 233, 0.2);
  border-radius: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(71, 112, 242, 0.16), transparent 42%),
    rgba(6, 15, 34, 0.72);
}

.otp-panel-icon {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 9px 17px rgba(50, 124, 255, 0.28));
}

.otp-panel h2 {
  margin: 0;
  font-size: 22px;
}

.otp-panel p {
  margin: 0;
  color: #8997ae;
  font-size: 10px;
  line-height: 1.8;
}

.otp-panel > strong {
  color: #72a8ff;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.otp-code-input {
  width: min(100%, 270px);
  min-height: 58px;
  padding: 8px 14px;
  border: 1px solid rgba(79, 132, 233, 0.3);
  border-radius: 12px;
  outline: 0;
  color: #fff;
  background: rgba(7, 17, 38, 0.95);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 11px;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.otp-code-input:focus {
  border-color: #4e94ff;
  box-shadow: 0 0 0 3px rgba(54, 133, 255, 0.1), 0 0 28px rgba(47, 109, 239, 0.1);
}

.otp-code-input.is-invalid {
  border-color: rgba(255, 96, 120, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 96, 120, 0.08);
}

.otp-error,
.otp-countdown {
  min-height: 16px;
  color: #ff8799;
  font-size: 9px;
}

.otp-countdown {
  color: #74839b;
}

.otp-panel .signup-submit {
  width: min(100%, 320px);
}

.otp-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.otp-actions button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(88, 125, 196, 0.2);
  border-radius: 7px;
  color: #82aaff;
  background: rgba(12, 24, 47, 0.72);
  font-size: 9px;
  cursor: pointer;
}

.otp-actions button:disabled,
.signup-submit:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  min-width: 0;
}

.form-field > label {
  display: block;
  margin-block-end: 7px;
  color: #cdd6e6;
  font-size: 10px;
  font-weight: 700;
}

.input-wrap {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-inline: 12px;
  border: 1px solid rgba(95, 130, 198, 0.2);
  border-radius: 11px;
  background: rgba(5, 12, 28, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrap:focus-within {
  border-color: rgba(56, 139, 255, 0.68);
  background: rgba(8, 19, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(42, 126, 255, 0.1), 0 0 23px rgba(57, 111, 245, 0.09);
}

.form-field.is-invalid .input-wrap {
  border-color: rgba(255, 96, 120, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 96, 120, 0.08);
}

.input-wrap > img {
  width: 21px;
  height: 21px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  color: #f1f5ff;
  background: transparent;
  font-size: 11px;
}

.input-wrap input::placeholder {
  color: #526078;
}

.input-wrap--password button {
  flex: 0 0 auto;
  padding: 5px;
  border: 0;
  color: #7192d2;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.password-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-block-start: 7px;
}

.password-strength i {
  height: 3px;
  border-radius: 999px;
  background: rgba(107, 128, 169, 0.16);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.password-strength[data-level="1"] i:nth-child(-n+1) { background: #ff6078; }
.password-strength[data-level="2"] i:nth-child(-n+2) { background: #ffae3d; }
.password-strength[data-level="3"] i:nth-child(-n+3) { background: #4d8cff; }
.password-strength[data-level="4"] i:nth-child(-n+4) { background: #24d995; box-shadow: 0 0 8px rgba(36, 217, 149, 0.25); }

.password-hint,
.field-error,
.terms-error {
  display: block;
  min-height: 15px;
  margin-block-start: 5px;
  color: #5f6d84;
  font-size: 7.5px;
  line-height: 1.5;
}

.field-error,
.terms-error {
  color: #ff8799;
}

.field-error:empty,
.terms-error:empty {
  display: none;
}

.terms-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 9px;
  color: #8b99ae;
  font-size: 8.5px;
  line-height: 1.7;
  cursor: pointer;
}

.terms-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.terms-field > span {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
  border: 1px solid rgba(104, 139, 207, 0.38);
  border-radius: 5px;
  background: rgba(5, 12, 27, 0.8);
}

.terms-field input:checked + span {
  border-color: #3f8bff;
  background: linear-gradient(135deg, #238cff, #8f3bec);
}

.terms-field input:checked + span::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.terms-field input:focus-visible + span {
  outline: 2px solid #5ca4ff;
  outline-offset: 2px;
}

.signup-submit {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(110deg, #168aff, #4567fb 46%, #993aee);
  box-shadow: 0 13px 34px rgba(70, 95, 255, 0.25), inset 0 1px rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signup-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 42px rgba(70, 95, 255, 0.36), inset 0 1px rgba(255, 255, 255, 0.24);
}

.signup-submit span:last-child {
  font-size: 18px;
}

.signup-submit:focus-visible,
.input-wrap--password button:focus-visible,
.signup-language:focus-within,
.back-home:focus-visible {
  outline: 2px solid #5ca4ff;
  outline-offset: 2px;
}

.form-status {
  min-height: 18px;
  margin: -4px 0 0;
  color: #7f8da5;
  font-size: 8px;
  text-align: center;
}

.form-status.is-error { color: #ff8799; }
.form-status.is-success { color: #52e6af; }

.login-prompt {
  margin: 19px 0 0;
  color: #7e8ca3;
  font-size: 9px;
  text-align: center;
}

.login-prompt a {
  color: #64a4ff;
  font-weight: 800;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-block-start: 18px;
  padding-block-start: 16px;
  border-top: 1px solid rgba(105, 139, 202, 0.1);
  color: #59677d;
  font-size: 7px;
  line-height: 1.6;
  text-align: center;
}

.secure-note img {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  object-fit: contain;
}

[dir="ltr"] .signup-visual,
[dir="ltr"] .signup-form-panel {
  direction: ltr;
}

[dir="ltr"] .back-home > span:first-child,
[dir="ltr"] .signup-submit > span:last-child {
  transform: rotate(180deg);
}

@media (max-width: 1050px) {
  .signup-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr); }
  .signup-visual { padding-inline: 28px; }
  .signup-form-panel { padding-inline: 32px; }
  .signup-benefits article { display: grid; justify-items: center; text-align: center; }
}

@media (max-width: 900px) {
  .signup-shell {
    width: min(100%, 720px);
    grid-template-columns: 1fr;
    grid-template-areas: "form" "visual";
    margin-inline: auto;
  }
  .signup-form-panel { min-height: 690px; border-inline-start: 0; border-bottom: 1px solid rgba(106, 143, 211, 0.13); }
  .signup-visual { min-height: 650px; }
  .visual-art { min-height: 300px; }
}

@media (max-width: 640px) {
  .signup-header { width: calc(100% - 28px); min-height: 70px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 29px; height: 29px; transform: scale(0.9); }
  .back-home { width: 42px; padding: 0; }
  .back-home span:last-child { display: none; }
  .signup-language { padding-inline: 8px 3px; }
  .signup-language select { width: 67px; font-size: 10px; }
  .signup-main { width: calc(100% - 20px); padding-block-start: 2px; }
  .signup-shell { border-radius: 19px; }
  .signup-form-panel { min-height: auto; padding: 31px 19px; }
  .form-intro { padding-inline-start: 54px; }
  .form-icon { width: 43px; height: 43px; }
  .form-intro h1 { font-size: 25px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .signup-visual { min-height: auto; grid-template-rows: auto 255px auto; padding: 33px 19px 25px; }
  .visual-copy { text-align: center; }
  .visual-copy p { margin-inline: auto; }
  .visual-copy h2 { font-size: 28px; }
  .visual-art { min-height: 230px; }
  .signup-benefits { grid-template-columns: 1fr; }
  .signup-benefits article { min-height: 70px; display: flex; justify-items: initial; text-align: start; }
}

@media (max-width: 390px) {
  .signup-header { gap: 8px; }
  .signup-header-actions { gap: 6px; }
  .signup-language > span:first-child { display: none; }
  .signup-form-panel { padding-inline: 15px; }
  .form-intro { padding-inline-start: 0; padding-block-start: 57px; text-align: center; }
  .form-icon { inset-inline-start: 50%; transform: translateX(-50%); }
  .visual-copy h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
