.recovery-shell {
  overflow-y: auto;
}

.recovery-card {
  width: min(960px, 100%);
  min-height: 570px;
  grid-template-columns: 0.95fr 1.05fr;
}

.recovery-form-panel {
  justify-content: center;
  padding: 42px 46px;
}

.recovery-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}

.recovery-heading {
  margin-bottom: 24px;
}

.recovery-step {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.recovery-heading h2,
.recovery-result h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1.2;
}

.recovery-heading > p:last-child,
.recovery-result p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.recovery-form-panel form {
  gap: 16px;
}

.recovery-form-panel form .primary-btn {
  width: 100%;
  margin-top: 3px;
}

.recovery-back {
  margin: 18px 0 0;
  text-align: center;
}

.recovery-result[hidden] {
  display: none;
}

.recovery-result-icon {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.recovery-result-icon::after {
  width: 12px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(-45deg);
}

.recovery-result strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.recovery-result .link {
  display: inline-block;
  margin-top: 18px;
}

.recovery-brand:focus-visible {
  outline: 3px solid rgba(34, 91, 86, 0.25);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .recovery-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .recovery-card {
    display: block;
    width: min(460px, 100%);
    min-height: 0;
    margin: auto;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
  }

  .recovery-form-panel {
    padding: 30px 24px;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(20, 44, 57, 0.12);
  }
}

@media (max-width: 380px) {
  .recovery-form-panel {
    padding: 26px 18px;
  }

  .recovery-heading h2,
  .recovery-result h2 {
    font-size: 1.55rem;
  }
}