/* ============================================================
   SIGN-UP PAGE — Nova design system match
   Scaled-down version
   ============================================================ */

/* ---------- root tokens ---------- */
.signUpPage {
  --bg: #080b12;
  --bg2: #0d1018;
  --bg3: #121620;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hi: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.32);
  --teal: #4dffc3;
  --teal-dim: rgba(77, 255, 195, 0.1);
  --teal-glow: rgba(77, 255, 195, 0.22);
  --blue: #4d9fff;
  --red: #ff6b6b;
  --ff-head: "Syne", sans-serif;
  --ff-body: "Outfit", sans-serif;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.signUpPage *,
.signUpPage *::before,
.signUpPage *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- layered background ---------- */
.su-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.su-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 50% at 5% 10%,
      rgba(77, 255, 195, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 45% 40% at 90% 15%,
      rgba(77, 159, 255, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 35% 55% at 75% 88%,
      rgba(255, 120, 77, 0.04) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 30% 30% at 25% 72%,
      rgba(180, 77, 255, 0.04) 0%,
      transparent 50%
    );
}

.su-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 20%,
    transparent 100%
  );
}

.su-bg-grain {
  position: absolute;
  inset: -100px;
  width: calc(100% + 200px);
  height: calc(100% + 200px);
  opacity: 0.024;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: suGrain 7s steps(8) infinite;
}

@keyframes suGrain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, -2%);
  }
  40% {
    transform: translate(2%, 3%);
  }
  60% {
    transform: translate(-2%, 1%);
  }
  80% {
    transform: translate(3%, -1%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ---------- card shell ---------- */
.su-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 350px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-hi);
  background: rgba(13, 16, 24, 0.88);
  backdrop-filter: blur(34px) saturate(150%);
  -webkit-backdrop-filter: blur(34px) saturate(150%);
  overflow: hidden;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  opacity: 0;
  transform: translateY(24px);
  animation: suFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes suFadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.su-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(77, 255, 195, 0.055) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.su-card::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(77, 159, 255, 0.045) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ---------- LEFT panel ---------- */
.su-left {
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* ---------- TOP BAR ---------- */
.su-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.su-back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  flex-shrink: 0;
}

.su-back:hover {
  background: var(--surface-hi);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.su-signin-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.su-signin-row span {
  font-size: 12px;
  color: var(--text-2);
}

.su-signin-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 8px;
  transition:
    background 0.15s,
    opacity 0.15s;
}

.su-signin-btn:hover {
  background: var(--teal-dim);
}

/* ---------- HEADING ---------- */
.su-heading {
  margin-bottom: 20px;
}

.su-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(77, 255, 195, 0.22);
  background: rgba(77, 255, 195, 0.06);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.su-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: suBlink 2.2s ease infinite;
}

@keyframes suBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.su-heading h1 {
  font-family: var(--ff-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 6px;
}

.su-heading h1 .grad {
  background: linear-gradient(110deg, var(--teal) 0%, var(--blue) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.su-heading p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- STEP 2 sub-heading ---------- */
.su-step2-heading {
  margin-bottom: 16px;
}

.su-step2-heading h2 {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.su-step2-heading p {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ---------- FORM ---------- */
.su-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.su-fields {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.su-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.su-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.su-field-label .lbl-icon {
  font-size: 13px;
  opacity: 0.9;
}

.su-input,
.su-select {
  width: 100%;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 13px;
  padding: 0 14px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.su-input::placeholder {
  color: var(--text-3);
}

.su-select option {
  color: #111;
  background: #fff;
}

.su-input:focus,
.su-select:focus {
  border-color: rgba(77, 255, 195, 0.42);
  box-shadow: 0 0 0 3px rgba(77, 255, 195, 0.07);
  background: rgba(255, 255, 255, 0.055);
}

.su-input.is-invalid,
.su-select.is-invalid {
  border-color: rgba(255, 107, 107, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.06) !important;
}

.su-error {
  font-size: 11px;
  color: var(--red);
  min-height: 16px;
  margin-top: 5px;
  padding-left: 2px;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.su-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- AVATAR ROW ---------- */
.su-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.su-avatar {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  flex-shrink: 0;
  border: 1px solid var(--border-hi);
  background: var(--surface-hi);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color 0.2s;
}

.su-avatar.has-img {
  border-color: rgba(77, 255, 195, 0.35);
}

.su-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.su-avatar span {
  font-size: 22px;
}

.su-avatar-info {
  flex: 1;
  min-width: 0;
}

.su-avatar-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}

.su-avatar-hint {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.su-avatar-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.su-upload-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(77, 255, 195, 0.28);
  background: rgba(77, 255, 195, 0.08);
  color: var(--teal);
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.su-upload-btn:hover {
  background: rgba(77, 255, 195, 0.13);
  border-color: rgba(77, 255, 195, 0.42);
  transform: translateY(-1px);
}

.su-upload-btn input[type="file"] {
  display: none;
}

.su-remove-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-2);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.su-remove-btn:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ---------- FOOTER ---------- */
.su-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}

.su-footer-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.su-footer-actions .su-spacer {
  flex: 1;
}

.su-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--ff-body);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.su-btn-ghost {
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--text);
}

.su-btn-ghost:hover {
  background: var(--surface-hi);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.su-btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border: none;
  color: #04130e;
}

.su-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--teal-glow);
  opacity: 0.93;
}

.su-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.su-step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.su-step-pip {
  width: 18px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-hi);
  transition:
    background 0.25s,
    width 0.25s;
}

.su-step-pip.active {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  width: 28px;
}

.su-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.su-footer-links a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.su-footer-links a:hover {
  color: var(--text);
}

/* ---------- RIGHT panel ---------- */
.su-right {
  position: relative;
  overflow: hidden;
}

.su-right > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) saturate(1.08);
}

.su-right-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 500px at 65% 15%,
      rgba(77, 255, 195, 0.1),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(8, 11, 18, 0.18) 0%, rgba(8, 11, 18, 0.7) 100%);
}

.su-right::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(77, 255, 195, 0.25),
    transparent
  );
  z-index: 2;
}

.su-right-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.su-cap-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.su-cap-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.su-cap-logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28),
    transparent 55%
  );
}

.su-cap-logo-mark svg {
  width: 11px;
  height: 11px;
  position: relative;
  z-index: 1;
}

.su-cap-logo-name {
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.su-cap-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}

.su-cap-desc {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
}

.su-cap-pills {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.su-cap-pill {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(77, 255, 195, 0.22);
  background: rgba(77, 255, 195, 0.07);
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .su-card {
    grid-template-columns: 1fr;
  }

  .su-right {
    display: none;
  }

  .su-left {
    padding: 26px 24px 28px;
  }
}

@media (max-width: 480px) {
  .signUpPage {
    padding: 18px 12px;
  }

  .su-left {
    padding: 22px 18px 24px;
  }

  .su-topbar {
    margin-bottom: 18px;
  }

  .su-heading {
    margin-bottom: 16px;
  }

  .su-footer-actions {
    flex-direction: column;
  }

  .su-btn-primary,
  .su-btn-ghost {
    width: 100%;
  }
}

.su-success-msg {
  margin-top: 8px;
  color: #7ee081;
  font-size: 13px;
  font-weight: 500;
}

.su-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.su-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.su-lang-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

.su-lang-select {
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.su-lang-select option {
  color: #111;
  background: #fff;
}
