/* Personal account recovery, using the shared Lean Academy colour system. */
.recovery-panel {
  width: min(540px, 100%);
  min-width: 0;
}

.recovery-panel .auth-intro {
  margin: 16px 0 24px;
  color: var(--muted, #4e565d);
  line-height: 1.6;
}

.recovery-panel h1,
.recovery-settings h2 {
  overflow-wrap: anywhere;
}

.recovery-panel .brand-kicker {
  margin-top: 0;
  margin-bottom: 12px;
}

.recovery-form,
.recovery-form label,
.recovery-form .password-input-wrap {
  min-width: 0;
}

.recovery-form label {
  display: grid;
  gap: 7px;
  color: var(--ink, #121d23);
  font-weight: 750;
  line-height: 1.45;
}

.recovery-form input {
  min-width: 0;
  min-height: 48px;
  border-color: #7c8e99;
  font-weight: 500;
}

.recovery-form button[type="submit"],
.recovery-primary-link {
  min-height: 48px;
  padding: 12px 16px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.recovery-form button[type="submit"]:hover,
.recovery-primary-link:hover {
  background: linear-gradient(135deg, #19303c 0%, #315b70 54%, #35708c 100%);
}

.recovery-form .password-input-wrap input {
  padding-right: 88px;
}

.recovery-form .password-toggle {
  min-height: 44px;
  height: 44px;
  right: 2px;
  padding-inline: 12px;
}

.recovery-form input:focus-visible,
.recovery-form button:focus-visible,
.recovery-primary-link:focus-visible,
.recovery-back a:focus-visible {
  outline: 3px solid var(--brand, #245c7c);
  outline-offset: 3px;
}

.recovery-form button[type="submit"]:focus-visible,
.recovery-primary-link:focus-visible {
  box-shadow: 0 0 0 2px #fff;
}

.recovery-help {
  margin: 16px 0 0;
  color: var(--muted, #4e565d);
  font-size: 0.93rem;
  line-height: 1.55;
}

.recovery-message {
  margin: 0 0 20px;
  line-height: 1.5;
}

.recovery-aside {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #dfe6ec);
  color: var(--muted, #4e565d);
  font-size: 0.93rem;
  line-height: 1.55;
}

.recovery-aside p {
  margin: 0;
}

.recovery-aside p + p {
  margin-top: 6px;
}

.recovery-aside strong {
  color: var(--ink, #121d23);
}

.recovery-back {
  margin: 16px 0 0;
}

.recovery-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-recovery-link {
  margin: 12px 0 0;
}

.login-recovery-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-recovery-link a:focus-visible {
  outline: 3px solid var(--brand, #245c7c);
  outline-offset: 3px;
}

.recovery-primary-link {
  width: 100%;
}

.recovery-identity,
.recovery-address {
  margin: 0 0 22px;
  border: 1px solid var(--line, #dfe6ec);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--surface-blue, #eaf2f7);
  color: var(--ink, #121d23);
  overflow-wrap: anywhere;
}

.recovery-identity p {
  margin: 0;
  line-height: 1.5;
}

.recovery-identity p + p {
  margin-top: 5px;
}

.recovery-settings {
  min-width: 0;
  grid-column: 1 / -1;
}

.recovery-settings:hover {
  transform: none;
}

.recovery-settings .recovery-form {
  max-width: 520px;
  margin-top: 22px;
}

.recovery-settings .recovery-help {
  max-width: 66ch;
}

.recovery-address {
  display: grid;
  gap: 5px;
  max-width: 520px;
}

.recovery-address-state {
  color: var(--brand, #245c7c);
  font-size: 0.83rem;
  font-weight: 800;
}

.recovery-pending {
  max-width: 66ch;
  margin: 16px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

@media (max-width: 374px) {
  .recovery-panel {
    padding: 24px 20px;
  }

  .recovery-panel h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recovery-panel button,
  .recovery-panel .button,
  .recovery-settings button {
    transition: none;
  }
}
