/*
 * BesaPharm Login / Register page.
 */

.bp-auth-page {
  padding: 3rem 1.5rem;
  font-family: var(--oxa-font-sans, system-ui, sans-serif);
  color: var(--bp-text, #111827);
  max-width: 1320px;
  margin-inline: auto;
}

.bp-auth-page__inner {
  max-width: 100%;
}
.bp-auth-page__inner--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Card — no border */
.bp-auth-card {
  padding: 2rem 0;
}
.bp-auth-card__header {
  margin-bottom: 1.75rem;
}
.bp-auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.bp-auth-card__subtitle {
  font-size: 0.9375rem;
  color: var(--bp-muted, #6b7280);
  margin: 0;
}

/* Form fields — covers both our fields and WooCommerce hook fields */
.bp-auth-form__field {
  margin-bottom: 1.25rem;
}
.bp-auth-form__field label,
.bp-auth-form p label,
.bp-auth-form .form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--bp-text, #111827);
}
.bp-auth-form__req {
  color: #dc2626;
}

/* All inputs inside auth forms — unified style */
.bp-auth-form input[type="text"],
.bp-auth-form input[type="email"],
.bp-auth-form input[type="password"],
.bp-auth-form input[type="tel"],
.bp-auth-form input[type="date"],
.bp-auth-form input[type="number"],
.bp-auth-form input.input-text,
.bp-auth-form select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bp-border, #e5e7eb);
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--bp-text, #111827);
  background: var(--bp-bg, #fff);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-appearance: none;
}
.bp-auth-form input:focus,
.bp-auth-form select:focus {
  border-color: var(--bp-brand, #111111);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

/* WooCommerce hook fields (p.form-row) */
.bp-auth-form p.form-row,
.bp-auth-form .woocommerce-form-row {
  margin-bottom: 1.25rem;
  padding: 0;
}
.bp-auth-form p.form-row label,
.bp-auth-form .woocommerce-form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
/* Remove WooCommerce default inline widths */
.bp-auth-form p.form-row {
  float: none !important;
  width: 100% !important;
}

.bp-auth-form__hint {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--bp-muted, #6b7280);
}

/* Remember me + lost password row */
.bp-auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.bp-auth-form__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--bp-text, #111827);
}
.bp-auth-form__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--bp-brand, #111111);
  cursor: pointer;
}
.bp-auth-form__link {
  color: var(--bp-brand, #111111);
  text-decoration: none;
  font-weight: 500;
}
.bp-auth-form__link:hover {
  text-decoration: underline;
}

/* Submit button — same green as top header */
.bp-auth-form__btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--bp-brand, #111111);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}
.bp-auth-form__btn:hover {
  background: var(--bp-brand-hover, #3d3d3d);
}

/* Privacy text at bottom of register form */
.bp-auth-form .woocommerce-privacy-policy-text {
  font-size: 0.8125rem;
  color: var(--bp-muted, #6b7280);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.bp-auth-form .woocommerce-privacy-policy-text a {
  color: var(--bp-brand, #111111);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 700px) {
  .bp-auth-page__inner--two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ══════════════════════════════════════════════════════
 * Login / register — two plain columns.
 *
 * The earlier design put each form in a bordered card with a subtitle. The
 * reference has neither: headings sit light and large over fields that run
 * straight down the page.
 * ══════════════════════════════════════════════════════ */
.bp-auth-page {
  max-width: 1280px;
  margin-inline: auto;
  padding: 2rem 0 3rem;
}
.bp-auth-page__inner--two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.bp-auth-card {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.bp-auth-card__title {
  font-size: 25.888px !important;
  font-weight: 300 !important;
  color: #131315 !important;
  margin: 0 0 1.75rem !important;
}
/* The old cards carried a strapline naming the previous brand. */
.bp-auth-card__subtitle { display: none !important; }

.bp-auth-form__field { margin-bottom: 1.25rem; }
.bp-auth-form__field label,
.bp-auth-form__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 15px;
  font-weight: 400;
  color: #43454b;
}
.bp-auth-form__req { color: #e11d48; }

.bp-auth-form input[type="text"],
.bp-auth-form input[type="email"],
.bp-auth-form input[type="tel"],
.bp-auth-form input[type="password"],
.bp-auth-form input[type="date"] {
  width: 100%;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid #d5d7dd;
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #131315;
  outline: none;
}
.bp-auth-form input:focus { border-color: #131315; }

/* The country is fixed, so it is stated in place of a control. */
.bp-auth-form__static {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #131315;
}

.bp-auth-form__hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 14px;
  color: #43454b;
}

.bp-auth-form__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 15px;
  color: #43454b;
  cursor: pointer;
}
.bp-auth-form__check input { width: 16px; height: 16px; accent-color: #131315; margin: 0; }

.bp-auth-form__btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.bp-auth-form__btn:hover { background: #000; }

.bp-auth-form__link {
  display: block;
  margin-top: 1.25rem;
  font-size: 15px;
  color: #131315;
  text-decoration: underline;
}

.bp-auth-form__privacy { margin: 1.5rem 0; }
.bp-auth-form__privacy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #43454b;
}
.bp-auth-form__privacy a { color: #131315; text-decoration: underline; }

@media (max-width: 900px) {
  .bp-auth-page { padding-inline: 1rem; }
  .bp-auth-page__inner--two-col { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

/* Sized to their words, not the column — an earlier rule stretches them to
 * 100%, which the reference does not. */
.bp-auth-form__btn {
  width: auto !important;
  min-width: 0 !important;
  align-self: flex-start;
}

/* ── Signed-in account pages: the side navigation ──────────────────
 *
 * WooCommerce ships this as an ordinary bullet list, so it arrived as
 * underlined links with discs. The reference reads as a stack of rows: no
 * marker, no underline, and a hairline under each one.
 *
 * The row height comes from the link's padding rather than a height, so a
 * label that wraps on a narrow column grows its row instead of spilling out
 * of it. 15px top and bottom against an 18px/1.35 line gives the ~55px the
 * reference measures.
 *
 * Scoped to body.woocommerce-account so it outweighs the page-content link
 * styling in main.css (`body.page main.oxa-page a`), which is what was
 * underlining these. The B2B dashboard and profile stylesheets hide this nav
 * outright; display:none is untouched by anything here, so those pages are
 * unaffected.
 */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
/* The reference closes the stack at both ends, so the first row is ruled off
 * above as well as below. */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li::marker { content: none; }
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 15px 0;
  font-size: 18px;
  line-height: 1.35;
  color: #131315;
  text-decoration: none;
  transition: color 0.15s ease;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: #000;
}
