/* Register page — BE FORWARD marketplace theme */

body.bf-register-page main.reg {
  background: var(--bf-page);
  overflow-x: clip;
  font-family: var(--bf-font);
  color: var(--bf-black);
}

body.bf-register-page .breadcrumb {
  display: none;
}

/* ── Page head ───────────────────────────────────────────────── */

.reg-head {
  background: #fff;
  border-bottom: 1px solid var(--bf-line);
  padding: 20px 0 0;
}

.reg-head__crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--bf-muted);
  margin-bottom: 12px;
}

.reg-head__crumb a {
  color: var(--bf-muted) !important;
  text-decoration: none;
}

.reg-head__crumb a:hover {
  color: var(--bf-orange) !important;
}

.reg-head__crumb i {
  font-size: 9px;
  opacity: 0.45;
}

.reg-head__crumb span {
  color: var(--bf-black);
  font-weight: 600;
}

.reg-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.reg-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--bf-bg-soft);
  border: 1px solid var(--bf-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--bf-muted);
  margin-bottom: 14px;
}

.reg-head__flag {
  width: 26px;
  height: 17px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--bf-line);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.reg-head__flag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 62% 50%, var(--bf-orange) 36%, transparent 37%);
}

.reg-head__title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--bf-black);
}

.reg-head__title em {
  font-style: normal;
  color: var(--bf-orange);
}

.reg-head__lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bf-muted);
  max-width: 52ch;
}

.reg-head__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reg-head__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bf-grey);
}

.reg-head__trust i {
  color: var(--bf-orange);
}

.reg-head__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reg-head__stat {
  padding: 10px 16px;
  background: var(--bf-bg-soft);
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-sm);
  text-align: center;
  min-width: 88px;
}

.reg-head__stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bf-black);
  line-height: 1.1;
}

.reg-head__stat span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bf-muted);
}

/* ── Auth section ────────────────────────────────────────────── */

.reg-auth {
  padding: 28px 0 32px;
  background: var(--bf-page);
}

.reg-auth__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 28px;
  align-items: start;
}

.reg-auth__copy .rj-kicker {
  color: var(--bf-orange);
  margin-bottom: 10px;
}

.reg-auth__copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--bf-black);
}

.reg-auth__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--bf-muted);
  max-width: 42ch;
}

.reg-auth__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reg-auth__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bf-grey);
}

.reg-auth__list i {
  width: 32px;
  height: 32px;
  border-radius: var(--bf-radius-sm);
  background: var(--bf-orange-soft);
  color: var(--bf-orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
}

/* ── Register card ───────────────────────────────────────────── */

.reg-card {
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius);
  box-shadow: var(--bf-shadow-md);
  overflow: hidden;
}

.reg-card-head {
  padding: 24px 24px 0;
}

.reg-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bf-black);
}

.reg-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--bf-muted);
  line-height: 1.55;
}

.reg-flash {
  margin: 16px 24px 0;
  font-size: 13px;
  border-radius: var(--bf-radius-sm);
}

.reg-form {
  padding: 20px 24px 0;
  display: flex;
  flex-direction: column;
}

.reg-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reg-field {
  margin-bottom: 14px;
}

.reg-row .reg-field {
  margin-bottom: 14px;
}

.reg-field label {
  display: block;
}

.reg-phone-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.reg-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
}

.reg-error-block {
  margin: -6px 0 12px;
}

.reg-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bf-muted);
  cursor: pointer;
}

.reg-terms input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--bf-orange);
}

.reg-terms a {
  color: var(--bf-blue) !important;
  font-weight: 600;
  text-decoration: none;
}

.reg-terms a:hover {
  color: var(--bf-orange) !important;
}

.reg-submit {
  width: 100%;
  justify-content: center;
}

.reg-divider {
  margin: 18px 24px;
}

.reg-switch {
  padding: 0 24px 22px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--bf-muted);
  line-height: 1.55;
}

.reg-switch a {
  color: var(--bf-blue) !important;
  font-weight: 600;
  text-decoration: none;
}

.reg-switch a:hover {
  color: var(--bf-orange) !important;
}

/* ── Orange quick panel ──────────────────────────────────────── */

.reg-quick-wrap {
  padding: 0 0 24px;
  background: var(--bf-page);
}

.reg-quick-panel {
  background: linear-gradient(145deg, #0047FF 0%, #0038CC 55%, #002FA8 100%);
  padding: 22px 24px;
  border-radius: var(--bf-radius);
  box-shadow: var(--bf-shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reg-quick-panel h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.reg-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reg-quick-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--bf-radius-sm);
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

a.reg-quick-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.reg-quick-item__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.reg-quick-item__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.reg-quick-item__text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.reg-quick-item__text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Pillars ─────────────────────────────────────────────────── */

.reg-pillars {
  padding: 0 0 24px;
  background: var(--bf-page);
}

.reg-pillar-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius);
  box-shadow: var(--bf-shadow);
  overflow: hidden;
}

.reg-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-right: 1px solid var(--bf-line);
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.15s ease;
}

.reg-pillar:last-child {
  border-right: none;
}

.reg-pillar:hover {
  background: var(--bf-bg-soft);
}

.reg-pillar > i {
  width: 40px;
  height: 40px;
  border-radius: var(--bf-radius-sm);
  background: var(--bf-orange-soft);
  color: var(--bf-orange);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.reg-pillar span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reg-pillar strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--bf-black);
}

.reg-pillar em {
  font-style: normal;
  font-size: 11px;
  color: var(--bf-muted);
}

/* ── Features ────────────────────────────────────────────────── */

.reg-features {
  padding: 0 0 32px;
  background: var(--bf-page);
}

.reg-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reg-feature {
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--bf-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reg-feature:hover {
  border-color: #d1d5db;
  box-shadow: var(--bf-shadow-md);
}

.reg-feature > i {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: var(--bf-radius-sm);
  background: var(--bf-orange-soft);
  color: var(--bf-orange);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.reg-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--bf-black);
  margin-bottom: 6px;
}

.reg-feature span {
  display: block;
  font-size: 13px;
  color: var(--bf-muted);
  line-height: 1.55;
}

/* ── CTA ─────────────────────────────────────────────────────── */

.reg-cta {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.reg-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border-radius: var(--bf-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-cta__copy h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.reg-cta__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  max-width: 48ch;
  line-height: 1.6;
}

.reg-cta__copy .rj-kicker {
  color: var(--bf-orange);
}

.reg-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.bf-register-page .reg-cta .rj-btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
  background: transparent;
}

body.bf-register-page .reg-cta .rj-btn--ghost:hover {
  border-color: #fff;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .reg-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reg-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .reg-head__row,
  .reg-cta__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .reg-head__stats {
    width: 100%;
  }

  .reg-head__stat {
    flex: 1;
    min-width: 0;
  }

  .reg-auth__grid {
    grid-template-columns: 1fr;
  }

  .reg-pillar-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reg-pillar:nth-child(2) {
    border-right: none;
  }

  .reg-pillar:nth-child(odd) {
    border-right: 1px solid var(--bf-line);
  }

  .reg-pillar:nth-child(3),
  .reg-pillar:nth-child(4) {
    border-top: 1px solid var(--bf-line);
  }
}

@media (max-width: 640px) {
  .reg-row {
    grid-template-columns: 1fr;
  }

  .reg-phone-row {
    grid-template-columns: 1fr;
  }
}
