/* BJPC Alumni Portal — front-end styles (scoped to .bjpc-ap) */
.bjpc-ap { max-width: 720px; margin: 0 auto; }
.bjpc-ap-card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.bjpc-ap-title { margin: 0 0 6px; font-size: 22px; color: #1a2744; }
.bjpc-ap-sub { margin: 0 0 18px; color: #5b6472; font-size: 15px; line-height: 1.6; }

.bjpc-ap-err {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px;
}

.bjpc-ap-form { display: flex; flex-direction: column; gap: 14px; }
.bjpc-ap-label {
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: #6b7280; font-weight: 600; margin-top: 10px;
}
/* Inputs — matched to the site's form styling, scoped to win over the theme */
.bjpc-ap .bjpc-ap-input {
  padding: 13px 14px; border: 1px solid #e2e2e2; border-radius: 10px;
  font-size: 14px; width: 100%; box-sizing: border-box; background: #fff; color: #1a2744;
}
.bjpc-ap .bjpc-ap-input:focus { outline: 2px solid #1a2744; outline-offset: -1px; border-color: #1a2744; }
/* Submit button — matched to the site's .form-submit-btn */
.bjpc-ap .bjpc-ap-btn {
  margin-top: 18px; padding: 15px 22px; border: none; border-radius: 4px;
  background: #1a2744; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  width: 100%;
}
.bjpc-ap .bjpc-ap-btn:hover { background: #243352; }
.bjpc-ap-forgot { display: inline-block; margin-top: 12px; font-size: 13px; color: #5b6472; }

/* ---- Dark navy login card (matches the site's alumni login design) ---- */
.bjpc-ap-login { background: #1a2744; border-color: #1a2744; padding: 24px; }
.bjpc-ap-login .bjpc-ap-title { color: #ffffff; font-size: 20px; font-weight: 700; font-family: 'Fraunces','Playfair Display',Georgia,serif; }
.bjpc-ap-login .bjpc-ap-sub { color: rgba(255,255,255,.72); margin-bottom: 28px; }
.bjpc-ap-login .bjpc-ap-label { color: rgba(255,255,255,.55); }
.bjpc-ap-login .bjpc-ap-input {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #ffffff;
}
.bjpc-ap-login .bjpc-ap-input::placeholder { color: rgba(255,255,255,.5); }
.bjpc-ap-login .bjpc-ap-input:focus { outline: 2px solid rgba(255,255,255,.55); outline-offset: -1px; border-color: rgba(255,255,255,.55); }
/* Gold pill button (matches the mockup's .btn-gold). !important beats Salient's
   own <button> styling, which was overriding the background and hiding it. */
.bjpc-ap-login .bjpc-ap-btn {
  background: #c8a96e !important; color: #1a2744 !important;
  border: 0 !important; border-radius: 10px !important;
  padding: 13px 22px !important; font-size: 14px !important; font-weight: 600 !important;
  width: auto !important; align-self: flex-start;
  display: inline-flex; align-items: center; margin-top: 4px;
}
.bjpc-ap-login .bjpc-ap-btn:hover { background: #bb9a59 !important; }
.bjpc-ap-login .bjpc-ap-forgot { color: rgba(255,255,255,.65); }
.bjpc-ap-login .bjpc-ap-err {
  background: rgba(255,80,80,.15); color: #ffd9d9; border-color: rgba(255,120,120,.5);
}

/* Donate panel */
.bjpc-ap-thanks .bjpc-ap-title { color: #1a2744; }
.bjpc-ap-donate {
  display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; align-items: flex-start;
}
.bjpc-ap-qr { flex: 0 0 auto; text-align: center; }
.bjpc-ap-qr-label {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: #6b7280; font-weight: 700; margin-bottom: 10px;
}
/* !important needed: the theme forces images to 100% of their container */
.bjpc-ap .bjpc-ap-qr-img {
  width: 200px !important; height: 200px !important; max-width: 200px !important;
  object-fit: contain; display: block; margin: 0 auto;
  border: 1px solid #e4e6eb; border-radius: 10px; padding: 8px; background: #fff; box-sizing: border-box;
}
.bjpc-ap-qr-placeholder {
  width: 200px; height: 200px; display: flex; align-items: center; justify-content: center;
  border: 2px dashed #cbd2da; border-radius: 10px; color: #9aa3af; font-size: 13px; text-align: center; padding: 12px;
}
.bjpc-ap-bank { flex: 1 1 260px; }
.bjpc-ap-bank h4 {
  margin: 0 0 12px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #6b7280;
}
.bjpc-ap-bank dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; }
.bjpc-ap-bank dt { color: #6b7280; font-size: 13px; }
.bjpc-ap-bank dd { margin: 0; color: #1a2744; font-weight: 600; font-size: 14px; word-break: break-word; }
.bjpc-ap-logout {
  display: inline-block; margin-top: 24px; font-size: 13px; color: #5b6472; text-decoration: underline;
}

/* ---- Portal: nav (responsive, fluid units — no fixed-px width tuning) ---- */
.bjpc-ap-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; padding-bottom: .625rem; border-bottom: 1px solid #e4e6eb; }
.bjpc-ap-nav-tabs { display: flex; flex-wrap: wrap; gap: .375rem; }
.bjpc-ap-nav-link { padding: .45rem .7rem; border-radius: 8px; font-size: .8125rem; font-weight: 600; color: #5b6472; text-decoration: none; white-space: nowrap; }
.bjpc-ap-nav-link:hover { background: #eef1f6; color: #1a2744; }
.bjpc-ap-nav-link.is-active { background: #1a2744; color: #fff; }
.bjpc-ap-nav-out { margin-left: auto; color: #b3261e; }
.bjpc-ap-nav-out:hover { background: #fdecec; color: #991b1b; }
/* AJAX view container + loading state */
.bjpc-ap-view { transition: opacity .15s ease; }
.bjpc-ap[data-ap-portal].is-loading .bjpc-ap-view { opacity: .5; pointer-events: none; }
.bjpc-ap-back { display: inline-block; margin-top: 10px; font-size: 13px; color: #5b6472; text-decoration: none; }
.bjpc-ap-back:hover { color: #1a2744; text-decoration: underline; }

.bjpc-ap-ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.bjpc-ap-hint { display: block; margin: 4px 0 2px; font-size: 12px; color: #8a93a2; }
.bjpc-ap-textarea { min-height: 96px; resize: vertical; line-height: 1.5; font-family: inherit; }
.bjpc-ap-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; color: #1a2744; cursor: pointer; }
.bjpc-ap-check input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; }

.bjpc-ap-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.bjpc-ap-search .bjpc-ap-input { flex: 1 1 240px; width: auto; }
.bjpc-ap-search .bjpc-ap-btn { margin-top: 0; width: auto; }
.bjpc-ap-subhead { margin: 20px 0 10px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }

.bjpc-ap-member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bjpc-ap-member-item a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 14px 16px; border: 1px solid #e4e6eb; border-radius: 10px; background: #fff; }
.bjpc-ap-member-item a:hover { border-color: #1a2744; background: #f8fafc; }
.bjpc-ap-member-name { font-weight: 700; color: #1a2744; font-size: 15px; }
.bjpc-ap-member-meta { color: #5b6472; font-size: 13px; }
.bjpc-ap-member-batch { color: #8a93a2; font-size: 12px; }

.bjpc-ap-kv { font-size: 14px; color: #1a2744; margin: 14px 0; }
.bjpc-ap-kv strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-bottom: 2px; }
.bjpc-ap-about { color: #3b4554; font-size: 14px; line-height: 1.6; }
.bjpc-ap-muted { color: #8a93a2; font-size: 14px; }
.bjpc-ap-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.bjpc-ap-btn-sm { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 8px; background: #1a2744; color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 600; }
.bjpc-ap-btn-sm:hover { background: #243352; }

@media (max-width: 600px) {
  .bjpc-ap-card { padding: 22px 18px; }
  .bjpc-ap-donate { flex-direction: column; align-items: center; text-align: center; }
  .bjpc-ap-bank dl { grid-template-columns: 1fr; gap: 2px 0; }
  .bjpc-ap-bank dd { margin-bottom: 8px; }
  .bjpc-ap-nav-tabs { flex: 1 1 100%; }
  .bjpc-ap-nav-out { margin-left: 0; }
  .bjpc-ap-search .bjpc-ap-input { flex-basis: 100%; }
  .bjpc-ap-search .bjpc-ap-btn { width: 100%; }
}
