.jb-member-page .jb-container-main {
  max-width: 1152px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.jb-member-page.jb-member-page--account .jb-container-main { max-width: 1200px; padding-top: 0; padding-bottom: 0; }
.jb-member-page.jb-member-page--auth .jb-container-main { padding-top: 0; padding-bottom: 24px; }
.jb-member-auth { width: min(100%, 600px); margin: 0 auto; }

.jb-member-card {
  box-sizing: border-box;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 53, 83, .06);
}

.jb-member-card,
.jb-member-auth,
.jb-member-account { color: #1e293b; font-size: 14px; line-height: 1.6; }
.jb-member-title { margin: 0 0 22px; font-size: 24px; line-height: 1.35; }
.jb-member-intro { margin: 0 0 22px; color: #475569; }
.jb-member-notice { margin: 0 0 20px; padding: 11px 14px; border: 1px solid #efc4c4; border-left: 3px solid #bc3434; border-radius: 6px; background: #fff6f6; color: #a12121; }
.jb-member-notice.is-success { border-color: #b8dec7; border-left-color: #258351; background: #f1fbf4; color: #17673d; }
.jb-member-form { display: grid; gap: 10px; }
.jb-member-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jb-member-form > label:not(.jb-member-check) { margin-top: 8px; font-weight: 700; }
.jb-member-form > label:first-of-type { margin-top: 0; }
.jb-member-form > input:not([type="hidden"]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  font: inherit;
}

.jb-member-form > input:focus-visible,
.jb-member-form input[type="checkbox"]:focus-visible,
.jb-member-page a:focus-visible,
.jb-member-page button:focus-visible { outline: 2px solid #215db5; outline-offset: 3px; }
.jb-member-form > .jb-member-help { margin: -4px 0 0; color: #64748b; font-size: 12px; }
.jb-member-form > .jb-member-help + label { margin-top: 0; }
.jb-member-form > button,
.jb-member-secondary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 18px;
  border: 1px solid #215db5;
  border-radius: 6px;
  background: #215db5;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.jb-member-form > button:hover,
.jb-member-secondary:hover { border-color: #184b96; background: #184b96; color: #fff; }
.jb-member-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 0; color: #64748b; text-align: center; }
.jb-member-page a:not(.jb-member-secondary) { color: #215db5; text-decoration: underline; text-underline-offset: 2px; }
.jb-member-check,
.jb-member-agreements label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.jb-member-form > #jbf-login-password + .jb-member-check { margin-top: 12px; }
.jb-member-check input,
.jb-member-agreements input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #215db5; }
.jb-member-agreements { display: grid; gap: 12px; margin: 16px 0 4px; padding: 16px; border: 1px solid #dce4ef; border-radius: 6px; background: #f8fafc; }
.jb-member-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.jb-member-section { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid #e2e8f0; border-radius: 8px; }
.jb-member-section h2 { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; font-size: 18px; }
.jb-member-section p { margin: 0 0 14px; color: #475569; overflow-wrap: anywhere; }
.jb-member-section .jb-member-form { display: flex; flex: 1; flex-direction: column; }
.jb-member-section .jb-member-form > input[name="password_confirm"] { margin-bottom: 14px; }
.jb-member-section .jb-member-form > button { width: 100%; margin-top: auto; }
.jb-member-section--danger { border-color: #efc4c4; }
.jb-member-section--danger .jb-member-form > button { border-color: #b42318; background: #b42318; }
.jb-member-section--danger .jb-member-form > button:hover { border-color: #912018; background: #912018; }

@media (max-width: 1023px) {
  .jb-member-account-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  .jb-member-page .jb-container-main { padding: 20px 16px 40px; }
  .jb-member-card { padding: 24px 18px; }
  .jb-member-title { font-size: 20px; }
  .jb-member-section { padding: 18px; }
}
