.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f8fa;
}

.auth-shell .auth-main {
  flex: 1 0 auto;
  padding: 132px 0 64px;
}

.auth-shell #footer {
  margin-top: auto;
}

.auth-container {
  width: min(100% - 32px, 620px);
  margin: 0 auto;
}

.auth-card {
  padding: 36px;
  border: 1px solid #d8e2ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(35, 56, 76, .08);
  overflow: visible;
}

.auth-card--wide {
  width: min(100% - 32px, 760px);
}

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading h1 {
  margin: 0 0 8px;
  color: #183a5a;
  font-size: 32px;
  font-weight: 700;
}

.auth-heading p {
  margin: 0;
  color: #64778a;
  line-height: 1.55;
}

.auth-password-row {
  overflow: visible;
}

.auth-password-control {
  position: relative;
}

.auth-password-control .form-control {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 16px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #64778a;
  transform: translateY(-50%);
}

.auth-card .form-control:focus {
  border-color: #17689b;
  box-shadow: 0 0 0 3px rgba(23, 104, 155, .18);
}

.auth-card .form-label {
  margin-bottom: 7px;
  color: #23384c;
  font-size: 15px;
  font-weight: 600;
}

.auth-optional-label {
  color: #64778a;
  font-weight: 400;
}

.auth-validation-message {
  margin-top: 7px;
  color: #a74738;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-account-question.has-validation-error legend {
  color: #a74738;
}

.auth-derived-confirmation {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  background: #f5f8fa;
  color: #40566b;
}

.auth-account-question legend {
  margin-bottom: 10px;
  color: #23384c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-derived-confirmation__label {
  color: #64778a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-derived-confirmation strong {
  font-size: 16px;
  font-weight: 600;
}

.auth-derived-confirmation.is-resolved {
  border-color: #b9ddc8;
  background: #f1f9f4;
  color: #287a4d;
}

.auth-derived-confirmation.is-unmatched {
  border-color: #e5c5bd;
  background: #fff7f5;
  color: #a74738;
}

.auth-password-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  color: #64778a;
  font-size: 14px;
  list-style: none;
}

.auth-password-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-password-checklist li i {
  color: #93a3b2;
}

.auth-password-checklist li.is-complete,
.auth-password-checklist li.is-complete i,
.auth-password-match.is-complete {
  color: #287a4d;
}

.auth-password-match {
  min-height: 21px;
  margin-top: 8px;
  color: #64778a;
  font-size: 14px;
  font-weight: 600;
}

.auth-password-match.is-incomplete {
  color: #a74738;
}

.auth-helper-row {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 20px;
}

.auth-helper-row a,
.auth-secondary-action a,
.auth-back-link {
  color: #17689b;
  font-weight: 600;
}

.auth-secondary-action {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid #d8e2ea;
  color: #64778a;
  text-align: center;
}

.auth-form-section + .auth-form-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #d8e2ea;
}

.auth-form-section {
  padding: 0;
  overflow: visible;
}

.auth-form-section h2 {
  margin: 0 0 16px;
  color: #183a5a;
  font-size: 20px;
  font-weight: 700;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 0 12px;
}

.auth-terms-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: #17689b;
  font-weight: 600;
}

.auth-back-row {
  margin-bottom: 18px;
}

@media (max-width: 575px) {
  .auth-shell .auth-main {
    padding: 104px 0 40px;
  }

  .auth-card {
    padding: 26px 22px;
  }

  .auth-heading h1 {
    font-size: 28px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-password-checklist {
    grid-template-columns: 1fr;
  }
}
