/* Barabazer — unified login (all portals) */
:root {
  --bb-blue: #2874F0;
  --bb-yellow: #FF9F00;
  --bb-navy: #0B1D3F;
  --bb-gold: #E8B84A;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.45);
  --accent: var(--bb-blue);
  --accent-glow: rgba(40, 116, 240, 0.35);
  --shell-radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bb-login {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  color: #0f172a;
  background: #0a1628;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
}

/* —— Animated background —— */
.bb-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #061428 0%, #0c3d8f 30%, #2874F0 55%, #5b4fc7 78%, #1a0f3d 100%);
  background-size: 400% 400%;
  animation: bbGradientShift 18s ease infinite;
}

@keyframes bbGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.bb-login-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.bb-login-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: bbOrbFloat 20s ease-in-out infinite;
}

.bb-orb-1 { width: 480px; height: 480px; background: #fbbf24; top: -140px; right: -100px; opacity: 0.5; }
.bb-orb-2 { width: 400px; height: 400px; background: #38bdf8; bottom: -120px; left: -80px; opacity: 0.45; animation-delay: -7s; }
.bb-orb-3 { width: 320px; height: 320px; background: #c084fc; top: 35%; left: 25%; opacity: 0.35; animation-delay: -14s; }
.bb-orb-4 { width: 200px; height: 200px; background: var(--bb-gold); bottom: 20%; right: 15%; opacity: 0.25; animation-delay: -3s; }

@keyframes bbOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-25px, 20px) scale(0.94); }
}

/* Floating particles */
.bb-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bb-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: bbParticleRise linear infinite;
}

@keyframes bbParticleRise {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* —— Shell card —— */
.bb-login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border-radius: var(--shell-radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 32px 100px rgba(0, 0, 0, 0.45),
    0 0 80px var(--accent-glow);
  animation: bbShellEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bbShellEnter {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— Hero panel —— */
.bb-login-hero {
  position: relative;
  background: linear-gradient(165deg, rgba(11, 29, 63, 0.97) 0%, rgba(20, 18, 60, 0.92) 100%);
  color: #fff;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.bb-login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(232, 184, 74, 0.15), transparent 60%);
  pointer-events: none;
}

.bb-login-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  animation: bbHeroShine 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bbHeroShine {
  0%, 100% { transform: translateX(-30%) rotate(0deg); }
  50% { transform: translateX(30%) rotate(0deg); }
}

.bb-login-hero > * { position: relative; z-index: 1; }

.bb-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 28px;
  animation: bbFadeUp 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bb-brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: bbLogoPulse 4s ease-in-out infinite;
}

@keyframes bbLogoPulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 0 rgba(232, 184, 74, 0); }
  50% { box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 24px 4px rgba(232, 184, 74, 0.25); }
}

.bb-login-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 18px;
  animation: bbFadeUp 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bb-login-hero h1 .highlight {
  background: linear-gradient(90deg, #fff 0%, var(--bb-gold) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bbTextShimmer 4s linear infinite;
}

@keyframes bbTextShimmer {
  to { background-position: 200% center; }
}

.bb-login-hero .lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 36ch;
  animation: bbFadeUp 0.7s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bb-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: bbFadeUp 0.7s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bb-hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, background 0.25s;
}

.bb-hero-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

/* —— Form panel —— */
.bb-login-form-panel {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 44px 40px;
  border-left: 1px solid var(--glass-border);
  animation: bbFadeUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bb-form-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--bb-navy);
  margin-bottom: 6px;
}

.bb-form-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bb-form-brand:hover img { transform: scale(1.06) rotate(-3deg); }

/* Portal tabs */
.bb-portal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: rgba(11, 29, 63, 0.06);
  border-radius: 16px;
  margin-bottom: 26px;
}

.bb-portal-tabs button {
  border: 2px solid transparent;
  background: transparent;
  padding: 12px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.3;
  color: #64748b;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.bb-portal-tabs button i {
  display: block;
  font-size: 1.2rem;
  margin: 0 auto 5px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bb-portal-tabs button:hover {
  color: var(--bb-navy);
  background: rgba(255, 255, 255, 0.5);
}

.bb-portal-tabs button:hover i { transform: scale(1.15) translateY(-2px); }

.bb-portal-tabs button.active {
  background: #fff;
  color: var(--bb-navy);
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.bb-portal-tabs button.active i {
  color: var(--accent);
  transform: scale(1.1);
}

.bb-portal-tabs button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.bb-portal-tabs button.active::after { opacity: 0.4; }

/* Portal accent themes */
body.bb-login[data-portal="wholesaler"] { --accent: #2874F0; --accent-glow: rgba(40, 116, 240, 0.3); }
body.bb-login[data-portal="area_manager"] { --accent: #059669; --accent-glow: rgba(5, 150, 105, 0.3); }
body.bb-login[data-portal="zonal_manager"] { --accent: #7c3aed; --accent-glow: rgba(124, 58, 237, 0.3); }
body.bb-login[data-portal="admin"] { --accent: #0f172a; --accent-glow: rgba(15, 23, 42, 0.2); }

/* Inputs */
.bb-field-label {
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  margin-bottom: 7px;
  display: block;
}

.bb-input-wrap {
  position: relative;
  margin-bottom: 18px;
}

.bb-input-wrap .bb-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 17px;
  z-index: 2;
  transition: transform 0.25s, color 0.25s;
}

.bb-login .form-control {
  border-radius: 14px;
  border: 2px solid #e8edf4;
  padding: 13px 14px 13px 46px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.bb-login .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: translateY(-1px);
}

.bb-input-wrap:focus-within .bb-input-icon {
  transform: translateY(-50%) scale(1.1);
}

.bb-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.bb-pw-toggle:hover { color: var(--accent); background: #f1f5f9; }

/* Submit button */
.bb-btn-signin {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 10px;
  color: var(--bb-navy);
  background: linear-gradient(135deg, var(--bb-yellow) 0%, #f59e0b 55%, #fbbf24 100%);
  background-size: 200% auto;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background-position 0.4s;
}

.bb-btn-signin::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left 0.55s ease;
}

.bb-btn-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.5);
  background-position: right center;
}

.bb-btn-signin:hover::before { left: 120%; }

.bb-btn-signin:active { transform: translateY(0); }

.bb-btn-signin.loading {
  pointer-events: none;
  opacity: 0.85;
}

.bb-btn-signin .spinner-border {
  width: 1.1rem;
  height: 1.1rem;
  border-width: 2px;
}

/* Footer hints */
.bb-login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.bb-login-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.bb-login-footer a:hover { text-decoration: underline; }

.bb-login-sub {
  color: #475569;
  font-size: 14px;
  margin-bottom: 26px;
  font-weight: 500;
}

/* Portal info notice — high contrast (was too faint on white) */
.bb-portal-hint {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  margin-top: 16px;
  line-height: 1.65;
  padding: 14px 16px 14px 44px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  position: relative;
  animation: bbHintIn 0.35s ease both;
}

.bb-portal-hint > i,
.bb-portal-hint i.bi-info-circle {
  position: absolute;
  left: 16px;
  top: 15px;
  color: var(--accent);
  font-size: 1rem;
}

body.bb-login[data-portal="area_manager"] .bb-portal-hint {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #6ee7b7;
  color: #064e3b;
}

body.bb-login[data-portal="zonal_manager"] .bb-portal-hint {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
  color: #4c1d95;
}

body.bb-login[data-portal="admin"] .bb-portal-hint {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #94a3b8;
  color: #0f172a;
}

@keyframes bbHintIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bb-alert-soft {
  border-radius: 14px;
  border: none;
  font-size: 14px;
  animation: bbHintIn 0.4s ease both;
}

/* Stagger form fields */
.bb-stagger > * {
  animation: bbFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bb-stagger > *:nth-child(1) { animation-delay: 0.3s; }
.bb-stagger > *:nth-child(2) { animation-delay: 0.38s; }
.bb-stagger > *:nth-child(3) { animation-delay: 0.46s; }
.bb-stagger > *:nth-child(4) { animation-delay: 0.54s; }

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

/* Mobile hero strip */
.bb-mobile-brand {
  display: none;
  text-align: center;
  margin-bottom: 24px;
  animation: bbFadeUp 0.6s ease both;
}

.bb-mobile-brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  margin-bottom: 10px;
}

.bb-mobile-brand .name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bb-navy);
}

/* Responsive */
@media (max-width: 991.98px) {
  .bb-login-shell {
    grid-template-columns: 1fr;
    max-width: 480px;
    border-radius: 24px;
  }
  .bb-login-hero { display: none; }
  .bb-login-form-panel {
    border-left: none;
    padding: 36px 28px;
  }
  .bb-mobile-brand { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Signup page (split layout like login) —— */
.bb-signup-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  border-radius: var(--shell-radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 32px 100px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(40, 116, 240, 0.22);
  animation: bbShellEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bb-signup-hero {
  background: linear-gradient(165deg, rgba(11, 29, 63, 0.97) 0%, rgba(20, 18, 60, 0.92) 100%);
  color: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bb-signup-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 10% 90%, rgba(232, 184, 74, 0.18), transparent 55%);
  pointer-events: none;
}

.bb-signup-hero > * { position: relative; z-index: 1; }

.bb-signup-hero .bb-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.bb-signup-hero .bb-brand-mark img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bb-signup-hero h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.bb-signup-hero h1 .highlight {
  background: linear-gradient(90deg, #fff 0%, var(--bb-gold) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bbTextShimmer 4s linear infinite;
}

.bb-signup-hero .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.bb-signup-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bb-signup-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.bb-signup-step.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(232, 184, 74, 0.45);
}

.bb-signup-step .num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.bb-signup-step.active .num {
  background: var(--bb-gold);
  color: var(--bb-navy);
}

.bb-signup-form-panel {
  background: #fff;
  padding: 36px 40px 40px;
  max-height: 92vh;
  overflow-y: auto;
}

.bb-signup-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf4;
}

.bb-signup-header .bb-back-link {
  margin-bottom: 16px;
}

.bb-signup-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.bb-signup-title-row img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(11, 29, 63, 0.12);
}

.bb-signup-title-row h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bb-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bb-signup-title-row h2 small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #2874F0;
  margin-top: 2px;
}

.bb-signup-intro {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  line-height: 1.6;
  padding: 12px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2874F0;
  border-radius: 10px;
  margin: 0;
}

.bb-signup-mobile-steps {
  display: none;
  gap: 8px;
  margin-top: 14px;
}

.bb-signup-mobile-steps span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.bb-signup-mobile-steps span.active {
  background: linear-gradient(135deg, #2874F0, #1d4ed8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(40, 116, 240, 0.3);
}

.bb-signup-form-panel .bb-field-label {
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.bb-signup-form-panel .bb-field-label .req {
  color: #dc2626;
}

.bb-signup-form-panel .form-control,
.bb-signup-form-panel .form-select {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 12px 14px;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.bb-signup-form-panel .form-control:focus,
.bb-signup-form-panel .form-select:focus {
  border-color: #2874F0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(40, 116, 240, 0.12);
}

.bb-signup-form-panel .bb-input-wrap {
  position: relative;
  margin-bottom: 0;
}

.bb-signup-form-panel .bb-input-wrap .bb-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #2874F0;
  font-size: 16px;
  z-index: 2;
  pointer-events: none;
}

.bb-signup-form-panel .bb-input-wrap .form-control {
  padding-left: 42px;
}

.bb-signup-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
}

.bb-signup-section:first-of-type { margin-top: 0; }

.bb-signup-form-panel .mb-3 { margin-bottom: 14px !important; }

.bb-btn-register {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2874F0 0%, #1d4ed8 55%, #6366f1 100%);
  background-size: 200% auto;
  box-shadow: 0 10px 28px rgba(40, 116, 240, 0.35);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background-position 0.4s;
}

.bb-btn-register::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}

.bb-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(40, 116, 240, 0.45);
  background-position: right center;
  color: #fff;
}

.bb-btn-register:hover::before { left: 120%; }

a.bb-back-link {
  color: #2874F0;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}

a.bb-back-link:hover {
  text-decoration: none;
  gap: 10px;
  color: #1d4ed8;
}

@media (max-width: 991.98px) {
  .bb-signup-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
    border-radius: 22px;
  }
  .bb-signup-hero { display: none; }
  .bb-signup-mobile-steps { display: flex; }
  .bb-signup-form-panel {
    padding: 28px 24px 32px;
    max-height: none;
  }
}

@media (min-width: 992px) {
  body.bb-login.bb-signup-page {
    padding: 20px 16px;
    align-items: center;
  }
}
