/* Parent Portal sign-in page (/families/sign-in/). A single card, centred on a cream background,
   in the same colours and type as the rest of the site. Text sizes stay at 15px or larger. */

.psi {
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--tan-soft), transparent 70%),
    var(--cream);
  padding: clamp(36px, 7vw, 88px) var(--gutter);
  display: flex; justify-content: center;
}
.psi__card {
  width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--rule);
  border-top: 5px solid var(--brick); border-radius: 12px; box-shadow: 0 18px 50px rgba(22, 35, 58, .12);
  padding: clamp(26px, 5vw, 44px); text-align: center;
}
.psi__mark {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--tan);
}
.psi__card .eyebrow { margin: 0 0 8px; }
.psi__title { margin: 0; font-size: clamp(30px, 5vw, 38px); line-height: 1.1; letter-spacing: -.03em; color: var(--navy); }
.psi__lede { margin: 12px 0 0; font-size: var(--text); color: var(--ink-muted); }

.psi__form { margin-top: 26px; text-align: left; }
.psi__label { display: block; margin-bottom: 8px; font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.psi__field { position: relative; }
.psi__input {
  width: 100%; font: inherit; font-size: 18px; line-height: 1.3; color: var(--navy);
  padding: 15px 78px 15px 16px; background: #fff; border: 1.5px solid var(--warm-400); border-radius: 6px;
}
.psi__input:focus { outline: 3px solid var(--tan); outline-offset: 1px; border-color: var(--navy); }
.psi__show {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  font: inherit; font-size: var(--text-sm); font-weight: 700; color: var(--brick-dark);
  background: transparent; border: 0; padding: 10px 10px; border-radius: 4px; cursor: pointer;
}
.psi__show:hover { text-decoration: underline; }
.psi__show:focus-visible { outline: 3px solid var(--tan); }
.psi__submit { display: block; width: 100%; margin-top: 18px; }
.psi__submit:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }

.psi__error {
  margin: 0 0 16px; padding: 12px 14px; font-size: var(--text-sm); font-weight: 700; line-height: 1.4;
  color: var(--brick-deep); background: var(--brick-tint); border-left: 4px solid var(--brick); border-radius: 4px;
}
.psi__error[hidden] { display: none; }
/* "Need a password?" and the line that replaces it. */
.psi__help { margin-top: 20px; }
.psi__help-link {
  font: inherit; font-size: var(--text); font-weight: 700; color: var(--brick-dark);
  background: transparent; border: 0; padding: 8px 10px; border-radius: 4px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.psi__help-link:hover { color: var(--brick-deep); }
.psi__help-link:focus-visible, .psi__help-text:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
.psi__help-link[hidden], .psi__help-text[hidden] { display: none; }
.psi__help-text { margin: 0; font-size: var(--text); line-height: 1.5; color: var(--navy); text-wrap: pretty; }
.psi__help-text a { color: var(--brick-dark); font-weight: 700; white-space: nowrap; }
.psi__note { margin: 16px 0 0; font-size: var(--text-sm); color: var(--ink-muted); }

/* Kept for password managers, which like to see a name beside a password. Not shown. */
.psi__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
