/* Password recovery uses the same header, cards and palette as OTP verification. */
.recovery-card {
    min-width: 0;
}

.recovery-guide-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 25px 0 16px;
    border-radius: 8px;
    background: var(--pale);
    color: var(--blue);
    font-size: 21px;
}

.recovery-guide h2:not(.eyebrow) {
    margin: 0 0 10px;
    font: bold 23px/1.25 Georgia, serif;
}

.recovery-guide>p {
    color: var(--muted);
    font-size: 13px;
}

.recovery-steps {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.recovery-steps li {
    display: flex;
    gap: 11px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.recovery-steps small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
}

.recovery-steps strong {
    font-size: 13px;
}

.recovery-step-number {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pale);
    font-size: 12px;
    font-weight: bold;
}

.recovery-steps [aria-current="step"] {
    color: var(--navy);
}

.recovery-steps [aria-current="step"] .recovery-step-number {
    background: var(--blue);
    color: white;
}

.recovery-card form {
    margin-top: 25px;
}

.recovery-field {
    margin-bottom: 22px;
}

.recovery-field>label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
}

.recovery-input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--navy);
    background: white;
}

.recovery-input:focus {
    border-color: var(--blue);
}

.recovery-input[aria-invalid="true"] {
    border-color: #b12236;
}

.recovery-input:disabled {
    background: var(--pale);
    opacity: .7;
}

.recovery-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.recovery-captcha img {
    width: 240px;
    max-width: calc(100% - 60px);
    height: auto;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.recovery-captcha button {
    flex: 0 0 44px;
    height: 44px;
    padding: 10px;
}

.recovery-password {
    display: flex;
    align-items: stretch;
}

.recovery-password .recovery-input {
    border-radius: 6px 0 0 6px;
}

.recovery-password button {
    flex: 0 0 46px;
    padding: 10px;
    border-radius: 0 6px 6px 0;
    border-left: 0;
}

.password-requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 16px;
    padding: 14px;
    margin: 12px 0 0;
    list-style: none;
    border-radius: 6px;
    background: var(--pale);
    font-size: 12px;
    color: var(--muted);
}

.password-requirements li {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.password-requirements .rule-met {
    color: #17634f;
}

.rule-state {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.recovery-delivery {
    margin-top: 24px;
    overflow-wrap: anywhere;
}

.recovery-card .code-input {
    --digits: 4;
    --pitch: 40px;
    --gap: 6px;
    padding: 10 0 0 calc((var(--pitch) - var(--gap) - 1ch) / 2);
}

.recovery-card .code-input:disabled {
    opacity: .65;
}

@media (min-width: 761px) and (max-width: 1000px),
(max-width: 450px) {
    .password-requirements {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .recovery-guide-icon {
        display: none;
    }

    .recovery-guide h2:not(.eyebrow) {
        margin-top: 18px;
    }

    .recovery-steps {
        margin-top: 15px;
    }
}