/* ═══════════════════════════════════════════════════════════════
   HABIBAYAN REGISTRATION PAGE — PREMIUM SPLIT LAYOUT
   ═══════════════════════════════════════════════════════════════ */

/* ─── SPLIT LAYOUT ─── */
.hb-reg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

/* ─── LEFT BRAND PANEL ─── */
.hb-reg-brand {
  background:
    linear-gradient(160deg, rgba(22, 33, 62, 0.95) 0%, rgba(15, 52, 96, 0.92) 50%, rgba(26, 26, 46, 0.97) 100%),
    url('/images/weave2.1.png') center / cover no-repeat;
  background-color: var(--ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.hb-reg-brand::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08), transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
}

.hb-reg-brand::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 98, 42, 0.06), transparent 70%);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}

.hb-reg-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.hb-reg-pill {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.25);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hb-reg-brand h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
}

.hb-reg-brand h1 em {
  font-style: italic;
  color: var(--gold);
}

.hb-reg-brand > .hb-reg-brand-inner > .hb-reg-brand-top > p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin: 0;
}

/* Stats row */
.hb-reg-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-reg-stat {
  flex: 1;
  text-align: center;
}

.hb-reg-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hb-reg-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hb-reg-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Testimonial */
.hb-reg-testimonial {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.hb-reg-testimonial > p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  font-weight: 300;
  margin: 0 0 16px;
}

.hb-reg-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hb-reg-testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sunset), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.hb-reg-testimonial-author strong {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.hb-reg-testimonial-author span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── RIGHT FORM PANEL ─── */
.hb-reg-form-panel {
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.hb-reg-form-inner {
  width: 100%;
  max-width: 480px;
}

.hb-reg-form-header {
  margin-bottom: 32px;
}

.hb-reg-form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.hb-reg-form-header p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.hb-reg-form-header a {
  color: var(--sunset);
  font-weight: 600;
  text-decoration: none;
}

.hb-reg-form-header a:hover {
  text-decoration: underline;
}

/* ─── STEP INDICATORS ─── */
.hb-reg-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.hb-reg-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hb-reg-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--sand);
  color: var(--text-light);
  transition: all 0.3s;
}

.hb-reg-step span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s;
}

.hb-reg-step.active .hb-reg-step-dot {
  background: var(--sunset);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 98, 42, 0.3);
}

.hb-reg-step.active span {
  color: var(--text-dark);
  font-weight: 600;
}

.hb-reg-step.completed .hb-reg-step-dot {
  background: var(--accent-green);
  color: #fff;
}

.hb-reg-step.completed span {
  color: var(--accent-green);
}

.hb-reg-step-line {
  flex: 1;
  height: 2px;
  background: var(--sand);
  margin: 0 8px;
  transition: background 0.3s;
  min-width: 16px;
}

.hb-reg-step-line.completed {
  background: var(--accent-green);
}

/* ─── STEP CONTENT ─── */
.hb-reg-step-content {
  display: none;
}

.hb-reg-step-content.active {
  display: block;
  animation: hbStepIn 0.35s ease;
}

@keyframes hbStepIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ─── FORM ELEMENTS ─── */
.hb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.hb-form-group {
  display: flex;
  flex-direction: column;
}

.hb-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.hb-required {
  color: var(--sunset);
}

.hb-form-group input,
.hb-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: #fff;
  transition: all 0.2s;
  outline: none;
}

.hb-form-group input::placeholder {
  color: #c4bfb8;
  font-weight: 300;
}

.hb-form-group input:focus,
.hb-form-group select:focus {
  border-color: var(--sunset);
  box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.08);
}

.hb-input-error {
  border-color: var(--sunset) !important;
  box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.12) !important;
}

.hb-form-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

.hb-match-hint {
  color: var(--sunset) !important;
  font-weight: 500;
}

/* ─── PASSWORD FIELD ─── */
.hb-password-wrap {
  position: relative;
}

.hb-password-wrap input {
  padding-right: 44px;
}

.hb-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.hb-password-toggle:hover {
  color: var(--text-mid);
}

/* Password strength */
.hb-password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.hb-strength-bars {
  display: flex;
  gap: 4px;
}

.hb-strength-bar {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #e0ddd8;
  transition: background 0.3s;
}

.hb-strength-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ─── FORM NAVIGATION ─── */
.hb-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.hb-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sunset);
  color: #fff;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 20px rgba(232, 98, 42, 0.25);
}

.hb-btn-next:hover {
  background: var(--sunset-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 98, 42, 0.35);
}

.hb-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--sand);
  color: var(--text-mid);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.hb-btn-back:hover {
  border-color: var(--text-light);
  color: var(--text-dark);
}

.hb-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sunset), #d4541d);
  color: #fff;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 8px 28px rgba(232, 98, 42, 0.3);
  letter-spacing: 0.3px;
}

.hb-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 98, 42, 0.4);
}

.hb-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.hb-btn-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hb-btn-submit-loading svg {
  animation: hbSpin 1s linear infinite;
}

@keyframes hbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── SECURITY NOTE ─── */
.hb-reg-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hb-reg-secure-note svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hb-reg-brand {
    padding: 48px 36px;
  }

  .hb-reg-form-panel {
    padding: 40px 32px;
  }
}

@media (max-width: 900px) {
  .hb-reg-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hb-reg-brand {
    padding: 48px 24px;
  }

  .hb-reg-brand-inner {
    max-width: 100%;
    text-align: center;
  }

  .hb-reg-brand h1 {
    font-size: 1.8rem;
  }

  .hb-reg-testimonial {
    text-align: left;
  }

  .hb-reg-testimonial-author {
    justify-content: flex-start;
  }

  .hb-reg-form-panel {
    padding: 36px 24px;
  }

  .hb-reg-form-inner {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hb-reg-brand {
    padding: 32px 16px;
  }

  .hb-reg-brand h1 {
    font-size: 1.5rem;
  }

  .hb-reg-stats-row {
    margin: 24px 0;
    padding: 16px 0;
  }

  .hb-reg-stat-num {
    font-size: 1.3rem;
  }

  .hb-reg-testimonial {
    padding: 16px;
  }

  .hb-reg-form-panel {
    padding: 24px 16px;
  }

  .hb-reg-form-header h2 {
    font-size: 1.4rem;
  }

  .hb-reg-steps {
    margin-bottom: 24px;
  }

  .hb-reg-step span {
    display: none;
  }

  .hb-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .hb-form-nav {
    margin-top: 24px;
  }

  .hb-btn-next,
  .hb-btn-submit {
    flex: 1;
    justify-content: center;
  }

  .hb-strength-bar {
    width: 28px;
  }
}
