/* ============================================================
   SPLIT-SCREEN REGISTER — clean white form + vibrant art panel
   ============================================================ */

/* Page backdrop */
.reg-split-page {
  min-height: 100vh;
  background: #a9bdf2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
/* Main card */
.reg-split-card {
  width: 100%;
  max-width: 1080px;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 30px 80px rgba(40,60,140,.25);
  min-height: 640px;
  animation: regCardIn .55s cubic-bezier(.22,1,.36,1);
}
@keyframes regCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- LEFT: form panel ---------- */
.reg-split-form {
  flex: 1 1 52%;
  padding: 36px 52px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.reg-split-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.reg-back-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid #e8ebf3;
  background: #fff;
  color: #1e1b4b;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.reg-back-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  transform: translateX(-2px);
  box-shadow: 0 4px 14px rgba(79,70,229,.15);
}
.reg-signin-link { font-size: 13.5px; color: #3b3a5e; }
.reg-signin-link a {
  color: #4f46e5; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid #c7d2fe; padding-bottom: 1px;
  transition: border-color .2s;
}
.reg-signin-link a:hover { border-color: #4f46e5; }

.reg-split-title {
  font-size: 42px; font-weight: 800; color: #141233;
  letter-spacing: -.02em; margin: 0 0 6px;
}
.reg-split-sub {
  font-size: 13.5px; color: #9aa0b5; margin: 0 0 26px;
}

/* Underline fields */
.reg-u-field { position: relative; margin-bottom: 20px; }
.reg-u-shell {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1.5px solid #e3e6f0;
  padding: 10px 2px;
  transition: border-color .2s;
}
.reg-u-shell:focus-within { border-color: #4f46e5; }
.reg-u-shell.has-error { border-color: #ef4444; }
.reg-u-icon { color: #b6bac9; font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.reg-u-shell:focus-within .reg-u-icon { color: #4f46e5; }
.reg-u-input {
  flex: 1; border: none !important; outline: none !important;
  background: transparent !important; box-shadow: none !important;
  font-size: 15px; color: #1e1b4b; font-weight: 500;
  padding: 4px 0 !important; border-radius: 0 !important;
  font-family: inherit;
}
.reg-u-input::placeholder { color: #b9bdcb; font-weight: 400; }
.reg-u-check {
  color: #22c55e; font-size: 17px; flex-shrink: 0;
  opacity: 0; transform: scale(.6);
  transition: all .25s cubic-bezier(.34,1.5,.64,1);
}
.reg-u-field.valid .reg-u-check { opacity: 1; transform: scale(1); }
.reg-u-eye {
  background: none; border: none; cursor: pointer;
  color: #1e1b4b; font-size: 16px; padding: 4px; flex-shrink: 0;
}
.reg-u-eye:hover { color: #4f46e5; }
select.reg-u-input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  color: #6b7280;
}
select.reg-u-input.chosen { color: #1e1b4b; font-weight: 500; }
.reg-u-err { font-size: 12px; color: #ef4444; margin-top: 5px; }

/* Password strength checklist */
.reg-pw-rules { margin: -8px 0 18px; display: flex; flex-direction: column; gap: 7px; }
.reg-pw-rule {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: #a2a7ba;
  transition: color .25s;
}
.reg-pw-rule .rule-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #c9cede; flex-shrink: 0; transition: all .25s;
}
.reg-pw-rule.met { color: #22c55e; font-weight: 500; }
.reg-pw-rule.met .rule-dot { display: none; }
.reg-pw-rule.met::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 11px; color: #22c55e; width: 14px;
}

/* Submit */
.reg-split-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #5b5ff0, #4f46e5);
  color: #fff; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; font-family: inherit;
  padding: 15px 34px; border-radius: 999px;
  margin-top: 6px;
  box-shadow: 0 10px 26px rgba(79,70,229,.35);
  transition: all .25s cubic-bezier(.34,1.4,.64,1);
  width: auto; align-self: flex-start;
}
.reg-split-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(79,70,229,.45);
}
.reg-split-submit .arr {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* Divider + social */
.reg-split-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 16px; color: #b9bdcb; font-size: 13px;
}
.reg-split-divider::before, .reg-split-divider::after {
  content: ''; flex: 1; height: 1px; background: #eceef5;
}
.reg-social-row { display: flex; align-items: center; gap: 14px; }
.reg-social-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid #e8ebf3; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .22s ease;
  font-size: 19px; color: #1877f2;
}
.reg-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20,30,80,.12);
  border-color: #c7d2fe;
}
.reg-social-btn.google { padding: 0; }
.reg-lang {
  margin-top: auto; padding-top: 26px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #1e1b4b;
  cursor: pointer; user-select: none;
}
.reg-lang .flag {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #012169 40%, #fff 40%, #fff 60%, #C8102E 60%);
  display: inline-block; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.reg-lang .chev { color: #b9bdcb; font-size: 11px; }

/* ---------- RIGHT: art panel ---------- */
.reg-split-art {
  flex: 1 1 48%;
  background: linear-gradient(140deg, #3b37c4 0%, #4f46e5 30%, #5b6cff 62%, #4a90e2 100%);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 36px;
}
.reg-split-art::before {
  content: '';
  position: absolute; top: -70px; right: -30px;
  width: 340px; height: 200px;
  background: #2e2a9e;
  border-radius: 0 0 0 90px;
  transform: rotate(-6deg);
}
.reg-split-art::after {
  content: '';
  position: absolute; bottom: -90px; left: -50px;
  width: 420px; height: 280px;
  background: linear-gradient(135deg, #5aa2f0, #4a90e2);
  border-radius: 0 120px 0 0;
  transform: rotate(4deg);
  opacity: .9;
}
.reg-art-wave {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 35% at 78% 42%, rgba(120,160,255,.35), transparent 70%),
    radial-gradient(ellipse 45% 30% at 20% 78%, rgba(90,162,240,.4), transparent 70%);
}
.reg-float-stack {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 26px; align-items: center;
  width: 100%; max-width: 340px;
}
.reg-float-card {
  background: #fff; border-radius: 22px;
  box-shadow: 0 20px 50px rgba(20,25,80,.28);
  padding: 24px 26px;
  animation: regFloat 5s ease-in-out infinite;
}
@keyframes regFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.reg-stat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.reg-stat-label { font-size: 13px; color: #f59e0b; font-weight: 600; }
.reg-stat-num { font-size: 30px; font-weight: 800; color: #141233; letter-spacing: -.02em; margin-top: 2px; }
.reg-stat-badge {
  background: #141233; color: #fff;
  font-size: 12px; font-weight: 700;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.reg-mini-chart { margin-top: 14px; display: block; }
.reg-social-orbit {
  position: absolute; z-index: 3;
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(20,25,80,.3);
  font-size: 26px;
  animation: regFloat 6s ease-in-out infinite;
}
.reg-social-orbit.ig { top: 16%; right: 8%; color: #e1306c; animation-delay: -2s; }
.reg-social-orbit.tk { top: 44%; right: 4%; animation-delay: -4s; color: #141233; }
.reg-rules-card { width: 100%; animation-delay: -2.5s; }
.reg-rules-row { display: flex; gap: 18px; align-items: flex-start; }
.reg-rules-lines { flex: 1; display: flex; flex-direction: column; gap: 13px; padding-top: 4px; }
.reg-rules-lines span { display: block; height: 8px; border-radius: 4px; background: #e8ebf3; }
.reg-rules-lines span:first-child { background: #4f46e5; width: 62%; height: 9px; box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.reg-rules-lines span:nth-child(2) { width: 88%; }
.reg-rules-lines span:nth-child(3) { width: 55%; }
.reg-rules-lines span:nth-child(4) { width: 72%; }
.reg-rules-lines span:nth-child(5) { width: 48%; }
.reg-key-icon { color: #f59e0b; font-size: 34px; }
.reg-rules-title { font-size: 18px; font-weight: 800; color: #141233; margin: 14px 0 6px; }
.reg-rules-desc { font-size: 12.5px; color: #9aa0b5; line-height: 1.6; margin: 0; }

/* Error / notice */
.reg-split-alert {
  border-radius: 12px; padding: 11px 15px; margin-bottom: 18px;
  font-size: 13px; display: flex; align-items: center; gap: 9px;
}
.reg-split-alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.reg-split-alert.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .reg-split-card { flex-direction: column; max-width: 560px; }
  .reg-split-art { display: none; }
  .reg-split-form { padding: 30px 28px 26px; }
  .reg-split-title { font-size: 32px; }
}
@media (max-width: 420px) {
  .reg-split-page { padding: 14px 10px; }
  .reg-split-card { border-radius: 20px; }
  .reg-split-form { padding: 24px 20px; }
  .reg-split-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reg-split-card, .reg-float-card, .reg-social-orbit { animation: none !important; }
}
