/* Standalone client entrance; deliberately independent of staff themes. */
.client-portal-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  color: #393a3d;
  font: 14px/1.5 Avenir, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.client-portal-page *,
.client-portal-page *::before,
.client-portal-page *::after { box-sizing: border-box; }
.client-portal-page [hidden] { display: none !important; }
.client-portal-page a { color: #0365ac; text-decoration: none; }
.client-portal-page a:hover { text-decoration: underline; }
.client-portal-page :focus-visible { outline: 3px solid #0077c5; outline-offset: 3px; }
.client-portal-main {
  flex: 1 0 auto;
  width: 100%;
  padding: 64px 16px 40px;
}
.client-portal-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 28px 20px 24px;
  border: 1px solid #e3e5e8;
  border-radius: 8px;
  background: #fff;
}
.client-portal-brand { text-align: center; margin-bottom: 28px; }
.client-portal-wordmark {
  margin: 0;
  color: #203d33;
  font: 600 27px/1.2 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}
.client-portal-firm {
  margin: 5px 0 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.client-portal-recovery-link { margin-top: 12px; text-align: center; font-size: 13px; }
.client-portal-recovery-form label { margin-top: 20px; }
.client-portal-recovery-help { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e3e5e8; font-size: 13px; color: #6b6c72; }
.client-portal-recovery-help p { margin: 0 0 10px; }
.client-portal-legal h2 { margin: 24px 0 8px; font-size: 16px; line-height: 1.4; }
.client-portal-legal section p { margin: 0 0 14px; }
.client-portal-card h1 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.client-portal-field { display: block; margin-bottom: 7px; }
.client-portal-form input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 8px 10px;
  border: 1px solid #8d9096;
  border-radius: 3px;
  background: #fff;
  color: #393a3d;
  font: inherit;
  font-size: 16px;
}
.client-portal-password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  min-height: 44px;
}
.client-portal-page button { font: inherit; cursor: pointer; }
.client-portal-text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 4px 0 4px 10px;
  border: 0;
  background: transparent;
  color: #0365ac;
  font-size: 13px !important;
}
.client-portal-submit {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 26px;
  padding: 10px 14px;
  border: 1px solid #0077c5;
  border-radius: 4px;
  background: #0077c5;
  color: #fff;
  font-size: 16px !important;
  font-weight: 600 !important;
}
.client-portal-submit:hover { background: #0064a6; border-color: #0064a6; }
.client-portal-submit:disabled { opacity: .65; cursor: wait; }
.client-portal-notice { margin: 18px 0 12px; font-size: 12px; line-height: 1.6; }
.client-portal-alternative {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #0365ac;
  font-weight: 600 !important;
}
.client-portal-alternative:hover { background: #f0f7fc; }
.client-portal-help { margin: 0 0 20px; }
.client-portal-status {
  margin: 16px 0 0;
  padding: 10px;
  border-radius: 3px;
  background: #f0f7fc;
  overflow-wrap: anywhere;
}
.client-portal-status.is-error { color: #a32620; background: #fff2f0; }
.client-portal-footer {
  flex: 0 0 auto;
  padding: 20px 16px 28px;
  color: #6b6c72;
  text-align: center;
  font-size: 12px;
}
.client-portal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 16px;
}
.client-portal-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.client-portal-footer p { margin: 4px 0 0; }
.client-portal-legal { max-width: 560px; padding: 28px; }
.client-portal-legal > p { margin: 0 0 18px; }
.client-portal-return { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
@media (max-width: 480px) {
  .client-portal-main { padding: 24px 16px; }
  .client-portal-card { padding: 24px 20px; }
  .client-portal-footer { padding-bottom: 20px; }
}

/* Refinement */
.client-portal-page { background: linear-gradient(180deg, #eef2f1 0, #f6f7f7 340px); }
.client-portal-card {
  max-width: 400px; padding: 36px 32px 28px; border-color: #dfe4e2; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(37,59,53,.06), 0 12px 32px rgba(37,59,53,.08);
}
.client-portal-brand { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid #edf0ef; }
.client-portal-firm { color: #5d6f69; font-weight: 600; letter-spacing: .16em; font-size: 10.5px; }
.client-portal-card h1 { font-size: 21px; margin-bottom: 26px; color: #253b35; }
.client-portal-field, .client-portal-password-label label { font-weight: 600; font-size: 13px; color: #393a3d; }
.client-portal-form input { border-color: #b5bab8; border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.client-portal-form input:hover { border-color: #8d9096; }
.client-portal-form input:focus { outline: 0; border-color: #0077c5; box-shadow: 0 0 0 3px rgba(0,119,197,.18); }
.client-portal-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; min-height: 46px; transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0,100,166,.25);
}
.client-portal-submit:hover { box-shadow: 0 4px 12px rgba(0,100,166,.28); }
.client-portal-lock { flex: 0 0 auto; }
.client-portal-alternative { border-radius: 999px; }
.client-portal-recovery-link { margin-top: 4px; font-weight: 500 !important; }
@media (max-width: 480px) { .client-portal-card { padding: 28px 22px 22px; box-shadow: none; } }

.cp-pledge { margin: 0 0 10px; padding: 14px 16px; border-left: 3px solid #1f5c3f; background: rgba(31, 92, 63, .08); border-radius: 6px; font-size: 15px; line-height: 1.5; }
.cp-pledge strong { display: block; margin-bottom: 4px; font-size: 17px; }
.cp-pledge-sub { font-weight: 600; }
.cp-spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.cp-spec dt { color: #666; }
.cp-spec dd { margin: 0; overflow-wrap: anywhere; }
.cp-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
@media (max-width: 480px) { .cp-spec { grid-template-columns: 1fr; gap: 0; } .cp-spec dd { margin-bottom: 8px; } }

.client-portal-lang { position: absolute; top: 14px; right: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #dfe4e2; border-radius: 999px; background: #fff; color: #6b6c72 !important; font-size: 12px; line-height: 1; }
.client-portal-lang:hover { text-decoration: none !important; border-color: #253b35; }
.client-portal-lang b { font-weight: 500; }
.client-portal-lang b.on { color: #253b35; font-weight: 700; }
.client-portal-lang span { opacity: .4; }
.client-portal-page { position: relative; }
.client-portal-legal h3 { margin: 16px 0 6px; font-size: 14px; }
.cp-cta { display: inline-block; padding: 9px 16px; border-radius: 6px; background: #1f5c3f; color: #fff !important; font-weight: 600; text-decoration: none; }
.cp-cta:hover { background: #174a32; }
