/* ============================================================
   SOULFULSYNC AUTH — LOGIN TRUE SPLIT 1.2.0
   Half brand / half form · full viewport · not a tiny centered card
============================================================ */

.ss-auth-page {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.auth-wrap--full,
.auth-wrap.auth-login {
  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);
}

html[data-theme="dark"] .auth-wrap--full,
html[data-theme="dark"] .auth-wrap.auth-login {
  background: var(--ss-bg, #0e0c16);
}

/* True 50/50 split — full bleed */
.auth-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !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;
}

/* —— Left brand half —— */
.auth-brand-panel {
  position: relative;
  margin: 0 !important;
  min-height: calc(100svh - 72px) !important;
  height: auto !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden;
  color: #f7f5ff;
  background:
    radial-gradient(800px 480px at 20% 20%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(700px 420px at 90% 80%, rgba(232, 120, 154, 0.22), transparent 50%),
    linear-gradient(145deg, #6e5ce6 0%, #5b8def 55%, #7e3af2 100%) !important;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: auto -15% -25% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.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(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff !important;
}

.auth-brand-lead {
  margin: 0 0 26px;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88) !important;
}

.auth-brand-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.auth-brand-points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95) !important;
  opacity: 1;
}

.auth-brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #fff;
}

.auth-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  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.4) !important;
}

/* —— Right form half —— */
.auth-form-col {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 72px);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 40px);
  background:
    radial-gradient(700px 400px at 80% 20%, 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% 20%, rgba(110, 92, 230, 0.2), transparent 60%),
    var(--ss-bg, #0e0c16);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  background: var(--ss-card, #fff);
  border: 1px solid var(--ss-border, rgba(110, 92, 230, 0.16));
  border-radius: 28px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--ss-shadow, 0 18px 50px rgba(40, 28, 80, 0.1));
  color: var(--ss-ink, #1a1528);
}

html[data-theme="dark"] .auth-card {
  backdrop-filter: blur(12px);
}

.auth-avatar {
  width: 88px !important;
  height: auto !important;
  border-radius: 0 !important;
  display: none !important;
  margin: 0 auto 14px;
}

html[data-theme="light"] .mentorsync-light { display: block !important; }
html[data-theme="light"] .mentorsync-dark  { display: none !important; }
html[data-theme="dark"] .mentorsync-light  { display: none !important; }
html[data-theme="dark"] .mentorsync-dark   { display: block !important; }

.auth-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth-head picture {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-head h1 {
  font-size: clamp(1.6rem, 2.4vw, 1.9rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--ss-ink, #1a1528);
}

.auth-tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ss-muted, #6b6480);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ss-muted, #6b6480);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  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;
}

.field input:focus {
  border-color: var(--ss-brand, #6e5ce6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(110, 92, 230, 0.18);
}

.password-field .password-wrapper { position: relative; }
.password-wrapper input { padding-right: 48px; }

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 6px;
  color: var(--ss-muted, #6b6480);
}

.field.chk label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.field.chk input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ss-brand, #6e5ce6);
}

.btn-auth {
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--ss-brand, #6e5ce6), #2f80ed);
  color: #fff;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-auth:hover { opacity: 0.94; }

.alt {
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--ss-muted, #6b6480);
}

.alt a,
.back-btn {
  color: var(--ss-brand, #6e5ce6);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.back-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.twofa-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  text-align: center;
}

.twofa-desc {
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ss-muted, #6b6480);
}

.auth-message {
  margin-top: 14px;
  font-size: 0.92rem;
  text-align: center;
  font-weight: 600;
  min-height: 1.4em;
}

.auth-message.err { color: var(--ss-error, #e74c3c); }
.auth-message.ok { color: var(--ss-success, #2ecc71); }
.auth-step[hidden] { display: none !important; }

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr !important;
  }

  .auth-brand-panel {
    min-height: auto !important;
    order: 1;
    padding: 28px 22px !important;
  }

  .auth-brand-points { display: none; }

  .auth-form-col {
    order: 2;
    min-height: auto;
    padding: 24px 18px 40px;
  }

  .auth-card { max-width: 520px; }
}
