/* /my-account/ when logged out (inc/account-page.php): centred login and
   register cards in the brand palette. */
body.fp26a-page {
  --a-ink: #1b2a6b;
  --a-text: #4a4f63;
  --a-muted: #6b7280;
  --a-line: #dfe2ea;
  --a-soft: #f3f4f8;
  --a-blue: #2148b0;
  --a-blue-dark: #18378a;
}

/* One centred 960px column; the page builder's spacer and the stand-alone
   Facebook block (now inside the login card) are hidden. */
body.fp26a-page .main-content.page { width: min(960px, calc(100% - 32px)); margin: 0 auto 57.5px; }
body.fp26a-page .main-content .vc_empty_space,
body.fp26a-page .main-content .wpb_text_column:has(.nsl-container):not(:has(#customer_login)) { display: none !important; }

.fp26a { padding-top: 36px; color: var(--a-text); }
.fp26a-head { margin-bottom: 28px; text-align: center; }
.fp26a-head h2 { margin: 0 0 8px; color: var(--a-ink); font-size: clamp(22px, 2.64vw, 27px); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.fp26a-head p { max-width: 520px; margin: 0 auto; color: var(--a-muted); font-size: 14px; line-height: 1.65; }

body.fp26a-page #customer_login.fp26a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin: 0; }
body.fp26a-page #customer_login.fp26a-grid--single { grid-template-columns: minmax(0, 440px); justify-content: center; }
body.fp26a-page #customer_login::before,
body.fp26a-page #customer_login::after { display: none; }

.fp26a-card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--a-line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(27, 42, 107, .04), 0 18px 40px -28px rgba(27, 42, 107, .35); }
.fp26a-card--register { background: var(--a-soft); border-color: transparent; box-shadow: none; }
.fp26a-card h3 { margin: 0; color: var(--a-ink); font-size: 20.5px; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-align: left; }
.fp26a-sub { margin: 4px 0 22px; color: var(--a-muted); font-size: 14px; }

/* Fields: same label and input style in both cards */
body.fp26a-page #customer_login .form-row { margin: 0 0 16px; padding: 0; }
body.fp26a-page #customer_login label { display: block; margin: 0 0 6px; color: var(--a-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
body.fp26a-page #customer_login label .required { color: #e5391f; text-decoration: none; }
body.fp26a-page #customer_login input.input-text {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #cfd3e0;
  border-radius: 10px;
  color: var(--a-ink);
  background: #fff;
  font-size: 14px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.fp26a-page #customer_login input.input-text:focus { border-color: var(--a-blue); outline: 0; box-shadow: 0 0 0 3px rgba(33, 72, 176, .15); }
body.fp26a-page #customer_login input::placeholder { color: #9aa0ae; }

/* Remember me + forgot password on one row */
.fp26a-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 18px; }
body.fp26a-page #customer_login .fp26a-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--a-text); font-size: 14px; font-weight: 500; cursor: pointer; }
.fp26a-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--a-blue); }
.fp26a .fp26a-link { color: var(--a-blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.fp26a .fp26a-link:hover { color: var(--a-blue-dark); text-decoration: underline; }

/* Buttons */
body.fp26a-page #customer_login .fp26a-submit { margin: 0; }
body.fp26a-page #customer_login button.fp26a-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--a-blue);
  border-radius: 10px;
  color: #fff;
  background: var(--a-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.fp26a-page #customer_login button.fp26a-btn:hover { border-color: var(--a-blue-dark); background: var(--a-blue-dark); }
body.fp26a-page #customer_login button.fp26a-btn--outline { color: var(--a-blue); background: #fff; }
body.fp26a-page #customer_login button.fp26a-btn--outline:hover { color: #fff; background: var(--a-blue); border-color: var(--a-blue); }
body.fp26a-page #customer_login button.fp26a-btn:focus-visible { outline: 3px solid rgba(33, 72, 176, .35); outline-offset: 2px; }

/* "หรือ" divider + Facebook */
.fp26a-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--a-muted); font-size: 13px; }
.fp26a-or::before, .fp26a-or::after { content: ""; flex: 1; height: 1px; background: var(--a-line); }
.fp26a-social .nsl-container { margin: 0 !important; }
.fp26a-social .nsl-container-buttons { display: block !important; padding: 0 !important; }
.fp26a-social .nsl-container-buttons a { display: block !important; width: 100% !important; margin: 0 !important; text-decoration: none !important; }
.fp26a-social .nsl-button { display: flex !important; align-items: center; justify-content: center; width: 100% !important; min-height: 50px; border-radius: 10px !important; box-shadow: none !important; }
.fp26a-social .nsl-button-label-container { flex: 0 1 auto !important; margin: 0 0 0 10px !important; padding: 0 !important; font-size: 14px !important; font-weight: 600; }

/* Register card extras */
.fp26a-note { margin: -4px 0 16px; color: var(--a-muted); font-size: 13px; }
body.fp26a-page .woocommerce-privacy-policy-text p { margin: 0 0 16px; color: var(--a-muted); font-size: 13px; line-height: 1.6; }
.fp26a-perks { display: grid; gap: 10px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--a-line); list-style: none; }
.fp26a-perks li { position: relative; padding-left: 28px; color: var(--a-text); font-size: 14px; line-height: 1.5; }
.fp26a-perks li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--a-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Error / notice boxes above the cards */
body.fp26a-page .woocommerce-notices-wrapper:not(:empty) { max-width: 960px; margin: 20px auto 0; }

@media (max-width: 767px) {
  .fp26a { padding-top: 20px; }
  .fp26a-head { margin-bottom: 20px; }
  body.fp26a-page #customer_login.fp26a-grid { grid-template-columns: 1fr; gap: 16px; }
  .fp26a-card { padding: 22px 18px; }
}
