/* ============================================================
   SOULFULSYNC AUTH — REGISTER TRUE SPLIT 1.3.1
   Brand panel + SVG | form · more breathing room (not flush left)
============================================================ */

.ss-auth-page {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.auth-wrap--full,
.auth-wrap.auth-register {
  display: block !important;
  width: 100% !important;
  min-height: calc(100svh - 72px) !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  background: var(--ss-bg, #f7f5ff);
  font-family: var(--ss-font, "Plus Jakarta Sans", system-ui, sans-serif);
}

html[data-theme="dark"] .auth-wrap--full,
html[data-theme="dark"] .auth-wrap.auth-register {
  background: var(--ss-bg, #0e0c16);
}

.auth-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100svh - 72px) !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* —— Brand panel —— */
.auth-brand-panel {
  position: relative;
  margin: 0 !important;
  min-height: calc(100svh - 72px) !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: clamp(48px, 7vw, 88px) clamp(40px, 6.5vw, 80px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden;
  color: #f7f5ff;
  box-sizing: border-box !important;
  background:
    radial-gradient(800px 480px at 18% 18%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(700px 420px at 88% 78%, rgba(232, 120, 154, 0.24), transparent 50%),
    linear-gradient(145deg, #6e5ce6 0%, #5b8def 55%, #7e3af2 100%) !important;
}

.auth-brand-inner {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-brand-mark {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88) !important;
}

.auth-brand-title {
  margin: 0 0 16px;
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff !important;
}

.auth-brand-lead {
  margin: 0 0 24px;
  max-width: 36ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9) !important;
}

.auth-brand-art {
  width: min(100%, 340px);
  margin: 4px 0 26px;
  align-self: center;
}

.auth-brand-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(12, 10, 20, 0.22));
}

.auth-brand-points {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
  width: 100%;
}

.auth-brand-points li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95) !important;
}

.auth-brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
}

.auth-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: #1a1528 !important;
  background: #fff !important;
  border: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-brand-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth-brand-link--ghost {
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

/* —— Form column —— */
.auth-form-col {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 72px);
  padding: clamp(36px, 5.5vw, 72px) clamp(32px, 5.5vw, 72px) !important;
  box-sizing: border-box;
  overflow-y: auto;
  background:
    radial-gradient(700px 400px at 80% 12%, rgba(110, 92, 230, 0.1), transparent 60%),
    var(--ss-bg, #f7f5ff);
}

html[data-theme="dark"] .auth-form-col {
  background:
    radial-gradient(700px 400px at 80% 12%, rgba(110, 92, 230, 0.22), transparent 60%),
    var(--ss-bg, #0e0c16);
}

.auth-card--register,
.auth-register .auth-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--ss-card, #fff);
  border: 1px solid var(--ss-border, rgba(110, 92, 230, 0.16));
  border-radius: 28px;
  padding: clamp(28px, 3.8vw, 40px);
  box-shadow: var(--ss-shadow, 0 18px 50px rgba(40, 28, 80, 0.1));
  color: var(--ss-ink, #1a1528);
  box-sizing: border-box;
}

html[data-theme="dark"] .auth-card--register,
html[data-theme="dark"] .auth-register .auth-card {
  backdrop-filter: blur(12px);
}

.auth-register .auth-avatar,
.auth-register .mentorsync-light,
.auth-register .mentorsync-dark {
  display: none !important;
}

.auth-head {
  text-align: center;
  margin-bottom: 20px;
}

.auth-head-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss-brand, #6e5ce6);
}

.auth-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.6vw, 1.9rem);
  letter-spacing: -0.025em;
  color: var(--ss-ink, #1a1528);
}

.auth-tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ss-muted, #6b6480);
}

.auth-progress {
  margin: 8px 0 28px;
}

.auth-progress-bar {
  height: 6px;
  background: var(--ss-border, rgba(110, 92, 230, 0.18));
  border-radius: 999px;
  overflow: hidden;
}

.auth-progress-bar span {
  display: block;
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, #6e5ce6, #9b8cff 55%, #e8789a);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.auth-steps-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ss-muted, #6b6480);
}

.auth-steps-labels span.active {
  color: var(--ss-brand, #6e5ce6);
  font-weight: 750;
}

.auth-step {
  display: none;
  animation: ssRegFade 0.35s ease;
}

.auth-step.active {
  display: block;
}

@keyframes ssRegFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.field {
  margin-bottom: 16px;
  position: relative;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ss-muted, #6b6480);
}

.field label .optional {
  font-weight: 500;
  opacity: 0.75;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field input[type="file"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--ss-border, rgba(110, 92, 230, 0.22));
  background: var(--ss-bg, #f7f5ff);
  color: var(--ss-ink, #1a1528);
  font: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}

.field input:focus {
  border-color: var(--ss-brand, #6e5ce6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(110, 92, 230, 0.18);
}

.field input.error {
  border-color: #ea5455 !important;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-hint {
  min-height: 18px;
  font-size: 0.75rem;
  margin-top: 5px;
}

.hint {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--ss-muted, #6b6480);
}

.password-strength {
  margin-top: 10px;
}

.password-strength .bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(155, 140, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

html[data-theme="dark"] .password-strength .bar {
  background: rgba(255, 255, 255, 0.1);
}

.password-strength .strength-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #9ca3af;
  border-radius: inherit;
  transition: width 0.35s ease, background-color 0.25s ease;
}

.password-strength .label {
  font-size: 0.78rem;
  color: var(--ss-muted, #6b6480);
}

.password-rules {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.password-rules li {
  font-size: 0.72rem;
  color: var(--ss-muted, #6b6480);
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-rules li::before {
  content: "•";
  font-size: 1rem;
  line-height: 1;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
}

.nav-buttons .btn-auth {
  flex: 1;
  width: auto;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #6e5ce6, #5b8def);
  color: #fff;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.btn-auth:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(110, 92, 230, 0.28);
}

.btn-auth:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.btn-auth--ghost {
  background: rgba(155, 140, 255, 0.1);
  color: var(--ss-ink, #1a1528);
  border: 1px solid var(--ss-border, rgba(110, 92, 230, 0.22));
  box-shadow: none;
}

html[data-theme="dark"] .btn-auth--ghost {
  color: var(--ss-ink, #f0ecfa);
}

.auth-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  font-size: 0.9rem;
  min-height: 0;
}

.alt {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--ss-muted, #6b6480);
}

.link {
  color: var(--ss-brand, #6e5ce6);
  text-decoration: none;
  font-weight: 700;
}

.link:hover {
  text-decoration: underline;
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--ss-muted, #6b6480);
  font-weight: 500;
}

.chk input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
  accent-color: var(--ss-brand, #6e5ce6);
}

.auth-photo-preview {
  margin-top: 10px;
}

.auth-photo-preview img {
  max-width: 112px;
  max-height: 112px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--ss-border, rgba(110, 92, 230, 0.2));
  box-shadow: var(--ss-shadow, 0 8px 20px rgba(12, 10, 20, 0.08));
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr !important;
  }

  .auth-brand-panel {
    min-height: auto !important;
    padding: 40px 28px 34px !important;
    align-items: center !important;
  }

  .auth-brand-inner {
    align-items: center;
    text-align: center;
    max-width: 420px;
  }

  .auth-brand-lead {
    margin-inline: auto;
  }

  .auth-brand-art {
    margin-inline: auto;
  }

  .auth-brand-points {
    width: auto;
    max-width: 34ch;
    margin-inline: auto;
    text-align: left;
  }

  .auth-brand-actions {
    justify-content: center;
  }

  .auth-form-col {
    min-height: auto;
    padding: 28px 22px 64px !important;
  }
}

@media (max-width: 640px) {
  .auth-brand-panel {
    padding: 32px 22px 28px !important;
  }

  .auth-form-col {
    padding: 20px 16px 56px !important;
  }

  .grid-2,
  .password-rules {
    grid-template-columns: 1fr;
  }

  .auth-card--register,
  .auth-register .auth-card {
    border-radius: 22px;
    padding: 24px 18px;
  }

  .nav-buttons {
    flex-direction: column-reverse;
  }

  .nav-buttons .btn-auth {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-step,
  .auth-progress-bar span,
  .btn-auth {
    animation: none !important;
    transition: none !important;
  }
}
