/* My Portal is a compact client-login entry point. The previous in-page hub remains
   non-rendered visually for backwards-compatible markup while the modal owns UX. */
#portal-access { display: none !important; }

.portal-login-dialog {
  width: min(430px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(17,26,39,.18);
  border-radius: 6px;
  background: #faf9f6;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(17,26,39,.20);
}

.portal-login-dialog::backdrop {
  background: rgba(17,26,39,.48);
  backdrop-filter: blur(2px);
}

.portal-login-card {
  position: relative;
  padding: 34px 34px 28px;
}

.portal-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
}

.portal-login-close:hover { color: var(--ink); }

.portal-login-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--red-dark);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-login-card h2 {
  margin: 0;
  max-width: 320px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 500;
}

.portal-login-card > p {
  margin: 15px 0 25px;
  max-width: 340px;
  color: #56616c;
  font-size: 14px;
  line-height: 1.65;
}

.portal-login-client {
  width: 100%;
  min-height: 50px;
  justify-content: space-between;
}

.portal-login-staff {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(17,26,39,.10);
  color: #7a838c;
  font-size: 10.5px;
}

.portal-login-staff span {
  text-transform: uppercase;
  letter-spacing: .09em;
}

.portal-login-staff a {
  color: #66717e;
  text-decoration: underline;
  text-decoration-color: rgba(102,113,126,.40);
  text-underline-offset: 3px;
}

.portal-login-staff a:hover { color: var(--ink); }

.portal-login-dialog:focus { outline: none; }

@media (max-width: 480px) {
  .portal-login-card { padding: 30px 22px 24px; }
  .portal-login-card h2 { max-width: 280px; }
  .portal-login-staff { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-login-dialog::backdrop { backdrop-filter: none; }
}
