/* Dedicated password-recovery presentation. These rules are self-contained so
   the update remains readable across v1.3.0-v1.3.3 stylesheet caches. */
.password-recovery-card .form-error-summary {
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid #efb4b4;
  border-radius: 12px;
  background: #fff4f4;
  color: #8e2020;
  font-size: 13px;
  line-height: 1.5;
}

.password-recovery-card .field-error {
  margin: 6px 0 0;
  color: #b82828;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.password-recovery-card .field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.password-recovery-card input.input-invalid,
.password-recovery-card input[aria-invalid="true"] {
  border-color: #b82828;
  box-shadow: 0 0 0 3px rgba(184, 40, 40, .08);
}

.password-recovery-card .auth-switch {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.password-recovery-card .auth-switch a {
  color: var(--green);
  font-weight: 800;
}

.password-recovery-card {
  width: min(520px, 100%);
}

.password-error-summary {
  margin-top: 20px;
}

.password-error-summary ul {
  display: grid;
  gap: 4px;
}

.password-reset-new-link {
  display: inline-flex;
  margin-top: 10px;
  color: #8e2020;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.password-input-wrap {
  position: relative;
  display: block;
  margin-top: 8px;
}

.password-input-wrap input {
  margin-top: 0 !important;
  padding-right: 78px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 54px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.password-visibility-toggle:hover {
  background: var(--green-pale);
  border-color: var(--green);
}

.password-visibility-toggle:focus-visible {
  outline: 3px solid rgba(8, 122, 60, .2);
  outline-offset: 2px;
}

.password-requirements {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--green-pale);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.password-requirements strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.password-requirements ul {
  margin: 0;
  padding-left: 18px;
}

.password-token-error {
  margin-top: 14px !important;
}

.password-submit-button {
  margin-top: 20px;
}

.password-recovery-card input[readonly] {
  color: var(--ink-2);
  background: #f3f7f5;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .password-recovery-card {
    padding: 30px 22px;
  }

  .password-recovery-card h1 {
    font-size: 34px;
  }
}
