/* ── JointPool Auth CSS ─────────────────────────── */

:root {
  --jp-purple:     #6C63FF;
  --jp-purple-dk:  #574fd6;
  --jp-purple-lt:  #f0eeff;
  --jp-dark:       #0f1117;
  --jp-dark-2:     #1a1f35;
  --jp-dark-text:  #ccd6f6;
  --jp-muted:      #8892b0;
  --jp-white:      #ffffff;
  --jp-gray-lt:    #f8f8f8;
  --jp-border:     #e8e8e8;
  --jp-green:      #22c55e;
  --jp-red:        #ef4444;
  --jp-radius:     12px;
  --jp-radius-sm:  8px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jp-auth-body {
  background: var(--jp-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ── Pantalla split ── */
.jp-auth-screen {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 580px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}

/* ── Panel izquierdo ── */
.jp-auth-left {
  flex: 1;
  background: var(--jp-dark-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  gap: 1.5rem;
  border-right: 1px solid rgba(255,255,255,.07);
}

.jp-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.jp-logo-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--jp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: white;
}

.jp-logo-name {
  font-size: 26px;
  font-weight: 600;
  color: var(--jp-white);
  letter-spacing: -.5px;
}

.jp-logo-sub {
  font-size: 12px;
  color: var(--jp-muted);
  letter-spacing: .5px;
}

.jp-auth-tagline {
  font-size: 15px;
  color: var(--jp-dark-text);
  text-align: center;
  line-height: 1.65;
  max-width: 210px;
}

.jp-auth-stats {
  display: flex;
  gap: 2rem;
  margin-top: .5rem;
}

.jp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.jp-stat-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--jp-purple);
}

.jp-stat-lbl {
  font-size: 11px;
  color: var(--jp-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Panel derecho ── */
.jp-auth-right {
  width: 390px;
  background: var(--jp-white);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  overflow-y: auto;
}

/* ── Tabs ── */
.jp-auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--jp-border);
  margin-bottom: 1.5rem;
}

.jp-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #aaa;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.jp-tab:hover { color: var(--jp-purple); }

.jp-tab.active {
  color: var(--jp-purple);
  border-bottom-color: var(--jp-purple);
}

.jp-badge-new {
  background: #ff6b6b;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ── Campos ── */
.jp-form-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.jp-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.jp-label {
  position: absolute;
  left: 14px;
  color: #bbb;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.jp-input {
  width: 100%;
  height: 46px;
  padding: 0 42px;
  border: 1.5px solid var(--jp-border);
  border-radius: var(--jp-radius);
  font-size: 14px;
  color: #1a1a2e;
  background: var(--jp-gray-lt);
  transition: border-color .2s, background .2s;
  outline: none;
}

.jp-input:focus {
  border-color: var(--jp-purple);
  background: #fafaff;
}

.jp-input.is-invalid { border-color: var(--jp-red); }
.jp-input.is-valid   { border-color: var(--jp-green); }

.jp-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #bbb;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.jp-user-status {
  position: absolute;
  right: 12px;
  font-size: 18px;
}

.jp-forgot {
  font-size: 12px;
  color: var(--jp-purple);
  text-align: right;
  margin-top: -6px;
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
}

.jp-forgot:hover { text-decoration: underline; }

/* ── Botones ── */
.jp-btn-main {
  width: 100%;
  height: 48px;
  border-radius: var(--jp-radius);
  background: var(--jp-purple);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .1s;
  margin-bottom: 14px;
}

.jp-btn-main:hover    { background: var(--jp-purple-dk); }
.jp-btn-main:active   { transform: scale(.98); }
.jp-btn-main:disabled { opacity: .6; cursor: not-allowed; }

.jp-btn-google {
  width: 100%;
  height: 46px;
  border-radius: var(--jp-radius);
  border: 1.5px solid var(--jp-border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: background .2s;
  margin-bottom: 16px;
}

.jp-btn-google:hover { background: var(--jp-gray-lt); }

/* ── Divisor ── */
.jp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.jp-divider::before,
.jp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--jp-border);
}

.jp-divider span {
  font-size: 12px;
  color: #bbb;
}

/* ── Alertas ── */
.jp-alert-error {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--jp-radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Steps dots ── */
.jp-step-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.jp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: all .3s;
}

.jp-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--jp-purple);
}

/* ── Verificación ── */
.jp-verify-box {
  background: var(--jp-purple-lt);
  border-radius: var(--jp-radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.jp-verify-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--jp-purple);
  margin-bottom: 4px;
}

.jp-verify-sub {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}

.jp-code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.jp-code-cell {
  width: 42px;
  height: 50px;
  border-radius: 10px;
  border: 1.5px solid #d4c9ff;
  background: white;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--jp-purple);
  outline: none;
  transition: border-color .2s;
}

.jp-code-cell:focus { border-color: var(--jp-purple); }

.jp-verify-hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
}

.jp-verify-hint a { color: var(--jp-purple); text-decoration: none; }
.jp-verify-hint a:hover { text-decoration: underline; }

/* ── Barra de fortaleza ── */
.jp-strength-bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin: -6px 0 4px;
  overflow: hidden;
}

.jp-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width .3s, background .3s;
}

.jp-strength-text {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 10px;
  min-height: 16px;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .jp-auth-left  { display: none; }
  .jp-auth-right { width: 100%; }
  .jp-auth-screen { border-radius: 16px; }
}

/* ── Match de contraseña ── */
.jp-match-text {
  font-size: 11px;
  margin: -8px 0 10px 4px;
  min-height: 16px;
  transition: color .2s;
}
