/* Login page — BE FORWARD marketplace theme */

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

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

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

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

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

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

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

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

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

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

.lgn-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;
}

.lgn-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;
}

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

.lgn-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);
}

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

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

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

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

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

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

.lgn-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;
}

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

.lgn-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 ────────────────────────────────────────────── */

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

.lgn-auth__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: 28px;
  align-items: start;
}

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

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

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

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

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

.lgn-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;
}

/* ── Sign-in card ────────────────────────────────────────────── */

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

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

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

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

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

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

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

.lgn-field label {
  display: block;
}

.lgn-forgot {
  margin: -2px 0 16px;
  text-align: right;
  font-size: 13px;
}

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

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

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

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

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

.lgn-switch:last-child {
  padding-bottom: 22px;
}

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

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

.lgn-switch + .lgn-switch {
  margin-top: 8px;
}

.lgn-switch-muted a {
  color: var(--bf-muted) !important;
}

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

.lgn-switch-muted a i {
  margin-right: 4px;
}

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

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

.lgn-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);
}

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

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

.lgn-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.lgn-quick-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lgn-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;
}

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

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

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

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

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

.lgn-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;
}

.lgn-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;
}

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

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

.lgn-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;
}

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

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

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

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

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

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

.lgn-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;
}

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

.lgn-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;
}

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

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

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

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

.lgn-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);
}

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

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

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

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

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

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

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

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

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

  .lgn-head__stats {
    width: 100%;
  }

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

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

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

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

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

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