.auth-page {
  margin: 0;
  min-height: 100vh;
  background: #f2f6fa;
  color: #142e48;
  font-family: var(--center-font, Tahoma, Arial, sans-serif);
  line-height: 1.85;
}

.auth-header {
  border-block-start: 4px solid #176d69;
  border-block-end: 1px solid #d9e3ed;
  background: #fff;
}

.auth-header-inner,
.auth-main {
  box-sizing: border-box;
  max-inline-size: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.auth-header-inner,
.auth-school-brand,
.auth-header-actions {
  display: flex;
  align-items: center;
}

.auth-header-inner {
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.auth-school-brand,
.auth-header-actions {
  gap: 0.75rem;
}

.auth-school-brand img {
  inline-size: clamp(3rem, 8vw, 4.5rem);
  block-size: auto;
}

.auth-school-brand p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.875rem;
}

.auth-school-brand strong {
  font-size: 1rem;
}

.auth-main {
  padding-block: clamp(1rem, 5vw, 3.75rem);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}

.auth-panel,
.auth-services {
  box-sizing: border-box;
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.auth-panel {
  border: 1px solid #d9e3ed;
  background: #fff;
  color: #142e48;
  box-shadow: 0 12px 36px #1939560a;
}

.auth-panel h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.45;
}

.auth-lead {
  margin: 0.5rem 0 1.25rem;
  color: #384f66;
}

.auth-onboarding {
  max-inline-size: 37rem;
  margin-inline: auto;
}

.auth-field {
  min-inline-size: 0;
  margin-block-end: 1rem;
}

.auth-field > label,
.auth-field-label {
  display: flex;
  align-items: center;
  margin-block-end: 0.25rem;
  min-block-size: 1.75rem;
}

.auth-field label {
  color: #142e48;
  font-weight: 700;
}

.auth-field-label {
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auth-field input {
  box-sizing: border-box;
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #7f93a6;
  border-radius: 0.625rem;
  background: #fbfdff;
  color: #142e48;
  font: inherit;
  text-align: start;
}

.auth-field input[aria-invalid="true"] {
  border-color: #a51a38;
}

.auth-password-field {
  display: flex;
  align-items: stretch;
  gap: 0.375rem;
}

.auth-password-toggle {
  min-inline-size: 4rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid #7f93a6;
  border-radius: 0.625rem;
  background: #eff7f6;
  color: #005c56;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-field-help,
.auth-help {
  color: #384f66;
  font-size: 0.875rem;
}

.auth-field-help,
.auth-field .errorlist {
  margin-block: 0.375rem 0;
}

.auth-field-help ul,
.auth-field .errorlist,
.auth-error .errorlist {
  margin-block: 0.25rem 0;
  padding-inline-start: 1.25rem;
}

.auth-error,
.auth-messages p {
  margin-block: 0 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
}

.auth-error {
  border: 1px solid #e7a7b3;
  background: #fff1f3;
  color: #8b1733;
}

.auth-field .errorlist {
  color: #8b1733;
  font-size: 0.875rem;
}

.auth-messages p {
  border: 1px solid #bfd6e7;
  background: #eaf4fc;
}

.auth-submit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  inline-size: 100%;
  min-block-size: 3rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  background: #00665f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:hover {
  background: #00544e;
}

.auth-help {
  margin-block-start: 1.25rem;
  border-block-start: 1px solid #d9e3ed;
  padding-block-start: 1rem;
  scroll-margin-block-start: 1rem;
}

.auth-help h2 {
  margin: 0 0 0.25rem;
  color: #142e48;
  font-size: 1rem;
}

.auth-help p {
  margin: 0 0 0.375rem;
}

.auth-text-link,
.auth-skip-link {
  color: #005c56;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.auth-skip-link {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #fff;
}

.auth-skip-link:not(:focus) {
  clip-path: inset(50%);
}

.auth-page :focus-visible,
.auth-onboarding :focus-visible {
  outline: 2px solid #00635d;
  outline-offset: 3px;
}

.auth-services {
  border-block-start: 4px solid #3cb9a6;
  background: linear-gradient(135deg, #142e48, #163e55);
  color: #e3eff8;
}

.auth-services h2 {
  margin: 0 0 0.875rem;
  color: #fff;
  font-size: 1.4rem;
}

.auth-services dl {
  margin: 0;
}

.auth-services dl > div {
  border-block-start: 1px solid #abc7df45;
  padding-block: 0.75rem;
}

.auth-services dl > div:last-child {
  padding-block-end: 0;
}

.auth-services dt {
  color: #fff;
  font-weight: 700;
}

.auth-services dd {
  margin: 0.125rem 0 0;
  font-size: 0.9375rem;
}

@media (max-width: 45rem) {
  .auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
