/* ============================================================
   REGISTER PAGE — split brand panel + wallet creation flow
   (extends styles.css)
   ============================================================ */

.reg-body { background: var(--paper); }

.reg { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 100vh; }

/* ---------- Left: brand art panel ---------- */
.reg__art {
  position: relative; overflow: hidden;
  background: var(--purple); color: var(--white);
  border-right: var(--bd);
  display: flex; flex-direction: column;
  padding: 30px 42px 36px; gap: clamp(20px, 3.5vh, 38px);
}
.reg__pin {
  position: absolute; width: 600px; height: 600px;
  right: -190px; bottom: -190px; opacity: .13; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reg__pin { animation: regSpin 70s linear infinite; }
  @keyframes regSpin { to { transform: rotate(360deg); } }
}
.reg__art-main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 26px; margin-block: auto; }
.reg__h {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 3.4vw, 56px); line-height: .97; letter-spacing: -.028em;
}
.reg__h em { font-style: normal; color: var(--lime); }
.reg__art-card {
  position: relative;
  border: var(--bd); border-radius: var(--r); overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink);
  max-width: 440px;
}
.reg__art-card img { width: 100%; }
.reg__art-card .sticker { position: absolute; left: 16px; bottom: 16px; }
.reg__points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.reg__points li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 15px;
}
.reg__points li::before {
  content: ""; width: 14px; height: 14px; flex: 0 0 auto;
  background: var(--lime); border: 2px solid var(--ink);
}
.reg__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; }
.reg__chips .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }

/* ---------- Right: form column ---------- */
.reg__main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px 28px 56px; gap: 18px; position: relative;
}
.reg__back {
  position: absolute; top: 24px; left: 30px;
  font-weight: 800; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 8px;
  border: var(--bd); background: var(--white); border-radius: 999px;
  padding: 9px 18px; box-shadow: var(--shadow-hard-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.reg__back:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.reg__card {
  width: min(540px, 100%);
  background: var(--white); border: var(--bd); border-radius: 22px;
  box-shadow: 9px 9px 0 var(--ink);
  padding: 28px clamp(22px, 4vw, 38px) 34px;
  display: flex; flex-direction: column; gap: 22px;
}
.reg__note { font-size: 13px; font-weight: 600; opacity: .6; display: flex; align-items: center; gap: 8px; }
.reg__note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); }

/* segmented create / sign-in toggle */
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border: var(--bd); border-radius: 999px; padding: 4px;
  background: var(--paper);
}
.seg button {
  border: 0; background: transparent; border-radius: 999px;
  padding: 11px; font: inherit; font-weight: 800; font-size: 15px;
  cursor: pointer; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.seg button.on { background: var(--ink); color: var(--lime); }

/* stepper */
.stepper { display: flex; gap: 8px; align-items: center; }
.stepper span {
  flex: 1; height: 8px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white); transition: background .25s ease;
}
.stepper span.on { background: var(--lime); }
.stepper b { font-family: var(--display); font-weight: 800; font-size: 12.5px; letter-spacing: .06em; white-space: nowrap; }

/* step panels */
.rstep { display: none; flex-direction: column; gap: 18px; }
.rstep.on { display: flex; animation: stepIn .35s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rstep__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1; }
.rstep__sub { font-size: 14.5px; opacity: .72; line-height: 1.5; margin-top: -8px; }

/* fields */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 800; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.field input {
  border: var(--bd); border-radius: 12px;
  padding: 13px 15px; font: inherit; font-weight: 600; font-size: 15px;
  background: var(--paper-2); color: var(--ink);
  transition: box-shadow .15s ease, background .15s ease;
  width: 100%;
}
.field input:focus { outline: none; background: var(--white); box-shadow: 4px 4px 0 var(--lavender); }
.field input.err { box-shadow: 4px 4px 0 var(--danger); }
.field__hint { font-size: 12px; font-weight: 600; opacity: .55; }
.field__hint.bad { color: var(--danger); opacity: 1; }

/* password strength */
.pwm { display: flex; align-items: center; gap: 6px; }
.pwm i { flex: 1; height: 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); transition: background .2s ease; }
.pwm i.f1 { background: var(--danger); }
.pwm i.f2 { background: var(--lavender); }
.pwm i.f3 { background: var(--lime); }
.pwm b { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; min-width: 56px; text-align: right; }

/* seed phrase grid */
.seed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seed span {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 10px;
  padding: 9px 11px; background: var(--paper-2);
  font-weight: 700; font-size: 13.5px;
}
.seed span i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 11px; color: var(--purple); min-width: 16px; }
.seed--blur span { filter: blur(5px); user-select: none; }
.seed-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.seed-tools .btn { padding: 10px 16px; font-size: 13.5px; }

/* checkbox */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.45; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px;
  border: var(--bd); border-radius: 6px; background: var(--white);
  display: grid; place-items: center;
  font-weight: 900; font-size: 14px; color: var(--ink);
  transition: background .15s ease;
}
.check .box::after { content: "✓"; opacity: 0; transform: scale(.4); transition: all .15s ease; }
.check input:checked + .box { background: var(--lime); }
.check input:checked + .box::after { opacity: 1; transform: none; }

/* hold-to-confirm button */
.holdbtn {
  position: relative; overflow: hidden;
  width: 100%; justify-content: center;
  background: var(--ink); color: var(--white);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.holdbtn .fill {
  position: absolute; inset: 0; width: 0%;
  background: var(--lime); z-index: 0;
  transition: width .12s linear;
}
.holdbtn .t { position: relative; z-index: 1; transition: color .15s ease; }
.holdbtn.filling .t { color: var(--ink); }
.holdbtn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* success */
.reg__success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.reg__badge {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--lime); border: var(--bd); box-shadow: var(--shadow-hard-sm);
  display: grid; place-items: center;
  animation: badgePop .5s var(--ease-out);
}
.reg__badge svg { width: 44px; height: 44px; }
@keyframes badgePop { from { transform: scale(.4) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.reg__success .rstep__sub { margin-top: 0; max-width: 38ch; }
.reg__success .hero__sub { justify-content: center; }

/* form-wide error shake */
@keyframes regShake { 0%,100% { transform: none; } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.reg__card.shake { animation: regShake .3s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .reg { grid-template-columns: 1fr; }
  .reg__art { border-right: none; border-bottom: var(--bd); padding: 86px 26px 34px; }
  .reg__art-card { max-width: 380px; }
  .reg__main { padding: 40px 20px 50px; }
  .reg__back { top: 20px; left: 20px; z-index: 5; }
}
@media (max-width: 520px) {
  .seed { grid-template-columns: repeat(2, 1fr); }
}
