.recovery-layout {
    display: grid;
    min-height: min(690px, calc(100vh - 220px));
    place-items: center;
    padding: 2rem 0;
}

.recovery-card {
    width: min(560px, 100%);
    padding: clamp(1.4rem, 4vw, 2.2rem);
}

.recovery-card h1 {
    margin: 0.35rem 0 0;
    color: #f7f7f9;
    font-size: clamp(2rem, 5vw, 3.1rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.recovery-form {
    margin-top: 1.35rem;
}

.recovery-success {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    margin: 1.35rem 0;
    border: 1px solid rgba(48, 209, 88, 0.35);
    border-radius: 15px;
    background: rgba(48, 209, 88, 0.08);
    padding: 1rem;
}

.recovery-success > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.16);
    color: #53d769;
    font-weight: 900;
}

.recovery-success strong {
    color: #f3f4f7;
}

.recovery-success p {
    margin: 0.3rem 0 0;
    color: #a8abb4;
    font-size: 0.86rem;
    line-height: 1.5;
}

.recovery-back-link {
    display: inline-block;
    margin-top: 1.1rem;
    color: #b3b6bf;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.recovery-back-link:hover,
.recovery-back-link:focus-visible {
    color: #ffffff;
}

.recovery-primary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    text-decoration: none;
}

.recovery-password-rule {
    margin: -0.2rem 0 0;
    color: #8d909a;
    font-size: 0.78rem;
    line-height: 1.45;
}

.login-forgot-link {
    display: inline-block;
    margin-top: 0.55rem;
    color: #ff6b87;
    font-size: 0.8rem;
    font-weight: 750;
    text-decoration: none;
}

.login-forgot-link:hover,
.login-forgot-link:focus-visible {
    color: #ff8da2;
    text-decoration: underline;
}
