/* ============================================================
   LifeTrack - Recuperação de senha
   Complementa o visual do login sem duplicar o CSS principal.
   ============================================================ */

.recovery-card {
    justify-content: center;
}

.recovery-branding .branding-content {
    max-width: 500px;
}

.recovery-security-list {
    display: grid;
    gap: 12px;
    margin-top: 38px;
}

.recovery-security-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.recovery-security-list i {
    width: 22px;
    color: #ffffff;
    text-align: center;
}

.recovery-progress {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 390px;
    margin: 6px auto 30px;
}

.recovery-progress-item {
    display: grid;
    justify-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: #9ca3af;
    transition: color .2s ease;
}

.recovery-progress-item span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #ffffff;
    font-size: 12px;
    font-weight: 800;
    transition: all .2s ease;
}

.recovery-progress-item small {
    font-size: 10px;
    font-weight: 600;
}

.recovery-progress-item.active,
.recovery-progress-item.done {
    color: #dc2626;
}

.recovery-progress-item.active span,
.recovery-progress-item.done span {
    border-color: #dc2626;
    color: #ffffff;
    background: linear-gradient(135deg,#ef4444,#991b1b);
    box-shadow: 0 6px 16px rgba(220,38,38,.2);
}

.recovery-progress-line {
    height: 1px;
    flex: 1;
    min-width: 24px;
    margin: 17px 8px 0;
    background: #e5e7eb;
}

.recovery-step {
    display: none;
    width: 100%;
    animation: recoveryFade .24s ease;
}

.recovery-step.active {
    display: block;
}

@keyframes recoveryFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.recovery-heading {
    margin-bottom: 26px;
    text-align: left;
}

.recovery-heading .recovery-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: #dc2626;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.recovery-heading h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(24px,3vw,31px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.7px;
}

.recovery-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
}

.recovery-heading p strong {
    color: #374151;
    font-weight: 700;
}

.recovery-fa-icon {
    display: grid !important;
    place-items: center;
}

.recovery-code-input {
    width: 100%;
    min-height: 64px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
    color: #111827;
    background: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .48em;
    text-align: center;
    caret-color: #dc2626;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.recovery-code-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220,38,38,.09);
}

.recovery-button-spinner {
    width: 18px;
    height: 18px;
    display: none;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: recoverySpin .7s linear infinite;
}

.login-btn.loading .recovery-button-spinner {
    display: inline-block;
}

.login-btn.loading > i {
    display: none;
}

@keyframes recoverySpin { to { transform: rotate(360deg); } }

.recovery-resend-row {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: #9ca3af;
    font-size: 11px;
}

.recovery-link-button {
    padding: 5px 2px;
    border: 0;
    color: #dc2626;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.recovery-link-button:disabled {
    color: #9ca3af;
    cursor: default;
}

.recovery-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px auto 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.recovery-back-link:hover {
    color: #dc2626;
}

.recovery-success {
    padding-top: 6px;
    text-align: center;
}

.recovery-success .recovery-heading {
    text-align: center;
}

.recovery-success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg,#10b981,#047857);
    box-shadow: 0 14px 30px rgba(5,150,105,.22);
    font-size: 26px;
}

.recovery-login-link {
    text-decoration: none;
}

#recoveryToast {
    z-index: 9999;
}

@media (max-width: 980px) {
    .recovery-layout {
        grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr);
    }
}

@media (max-width: 768px) {
    .recovery-layout {
        display: block;
        min-height: 100dvh;
    }

    .recovery-branding {
        display: none;
    }

    .recovery-card {
        width: 100%;
        min-height: 100dvh;
        padding-top: max(32px, env(safe-area-inset-top));
        padding-right: max(22px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        padding-left: max(22px, env(safe-area-inset-left));
    }

    .recovery-progress {
        margin-top: 4px;
        margin-bottom: 28px;
    }

    .recovery-code-input {
        font-size: 22px;
        letter-spacing: .38em;
    }
}

@media (max-width: 420px) {
    .recovery-card {
        padding-inline: max(16px, env(safe-area-inset-left));
    }

    .recovery-progress-item small {
        font-size: 9px;
    }

    .recovery-progress-line {
        margin-inline: 4px;
    }
}
