.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: 1fr;
  gap: 8px;
  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;
  }
}

/* Request outcomes. Previously a bare <font> tag between the heading and the
   form, which read as stray text rather than a result. */
.auth-result {
  margin: 4px 0 0;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  line-height: 1.45;
}

.auth-result i {
  margin-top: 1px;
  font-size: 18px;
}

.auth-result strong {
  display: block;
  font-size: 15px;
}

.auth-result p {
  margin: 4px 0 0;
  font-size: 14px;
}

.auth-result--success {
  border-color: #b7e0c4;
  background: #eef8f1;
  color: #17603a;
}

.auth-result--error {
  border-color: #f0c2c2;
  background: #fdf1f1;
  color: #8a2b2b;
}

.auth-result__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Details to check before continuing. Neutral on purpose: the green treatment
   read as though something had already succeeded. */
.activation-detail {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--landing-border, #d8e2ea);
  border-radius: 8px;
  background: #f7fafc;
}

.activation-detail:first-of-type {
  margin-top: 0;
}

.activation-detail__label {
  display: block;
  margin-bottom: 2px;
  color: #5b6b7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.activation-detail strong {
  font-size: 15px;
}

/* Account setup stands on its own: no sidebar, no navigation, nothing to
   wander off into before the terms are accepted. The mark is not a link for
   the same reason. */
body.activation-shell {
  padding-left: 0 !important;
}

body.activation-shell .cdm-sidebar,
body.activation-shell .cdm-sidebar-scrim,
body.activation-shell .cdm-app-topbar,
body.activation-shell .cdm-sidebar-toggle {
  display: none !important;
}

.activation-header .logo img {
  max-height: 100px;
}
