/* PetGuard ID - recuperacao de senha */
.recovery-page {
    --primary: #0075b5;
    --primary-dark: #075078;
    --text: #142332;
    --muted: #52677c;
    --border: #dce5ec;
    --background: #f3f7fa;
    --surface: #fff;
    margin: 0;
    color: var(--text);
    background: var(--background);
    font: 400 14px/1.6 'Plus Jakarta Sans', Arial, sans-serif;
}

.recovery-page *,
.recovery-page *::before,
.recovery-page *::after {
    box-sizing: border-box;
}

.recovery-page [hidden] {
    display: none !important;
}

.recovery-page h1,
.recovery-page h2,
.recovery-page .brand,
.mobile-brand {
    font-family: Outfit, Arial, sans-serif;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: clamp(32px, 5vw, 80px);
    color: white;
    background: linear-gradient(145deg, #063b5b, #075078 55%, #087cb1);
}

.auth-banner::before,
.auth-banner::after {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1px solid #ffffff20;
    border-radius: 50%;
    width: 440px;
    height: 440px;
    right: -220px;
    bottom: -140px;
    box-shadow: 0 0 0 55px #ffffff08, 0 0 0 110px #ffffff08;
}

.auth-banner::after {
    width: 180px;
    height: 180px;
    top: -90px;
    left: -90px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 27px;
    font-weight: 700;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #009ee8;
    font-size: 30px;
}

.banner-content {
    max-width: 520px;
}

.banner-tag {
    display: inline-block;
    border: 1px solid #ffffff40;
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #d9f3ff;
}

.banner-content h1 {
    font-size: clamp(36px, 4vw, 58px);
    margin: 24px 0 18px;
}

.banner-content p {
    color: #d9edf9;
    font-size: 16px;
    max-width: 430px;
}

.banner-benefits {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.banner-benefits span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e5f5ff;
}

.banner-benefits i {
    color: #91dcff;
    font-size: 23px;
}

.banner-footer {
    color: #b7d9eb;
    font-size: 12px;
}

.auth-content {
    display: grid;
    place-items: center;
    padding: 40px clamp(20px, 5vw, 72px);
    min-width: 0;
}

.auth-card {
    width: 100%;
    max-width: 490px;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 50px #173b5210;
    min-width: 0;
}

.mobile-brand {
    display: none;
}

.auth-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 32px;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 0 0 76px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.auth-step span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf2f6;
    color: var(--muted);
    font-size: 14px;
}

.auth-step.active {
    color: var(--primary-dark);
}

.auth-step.active span {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px #eaf6fd;
}

.auth-step.completed span {
    background: #dff3ea;
    color: #08764d;
}

.step-line {
    flex: 1;
    height: 2px;
    margin-top: 16px;
    background: var(--border);
}

.verification-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #eaf6fd;
    color: var(--primary);
    font-size: 34px;
    margin: 0 auto 18px;
}

.auth-heading,
.success-content {
    text-align: center;
    margin-bottom: 24px;
}

.auth-heading h2,
.success-content h2 {
    font-size: 30px;
    margin: 0 0 10px;
}

.auth-heading p,
.success-content p {
    color: var(--muted);
    margin: 0;
}

.recovery-page .form-group {
    margin: 0 0 18px;
    min-width: 0;
}

.recovery-page .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
}

.recovery-page .form-group input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 1px solid #cddce7;
    border-radius: 11px;
    background: #fff;
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.recovery-page input:focus {
    outline: 2px solid #0075b5;
    outline-offset: 1px;
}

.recovery-page .form-group small {
    display: block;
    color: var(--muted);
    margin-top: 8px;
    font-size: 12px;
}

.recovery-page .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: 700 14px/1.4 'Plus Jakarta Sans', sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
}

.recovery-page .btn-primary {
    background: var(--primary);
    color: white;
}

.recovery-page .btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.recovery-page button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.recovery-page a:focus-visible,
.recovery-page button:focus-visible {
    outline: 3px solid #58bdf4;
    outline-offset: 3px;
}

.auth-register,
.resend-area {
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
}

.auth-register a,
.text-button {
    color: var(--primary-dark);
    font: 600 13px/1.5 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
}

.text-button {
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.auth-register a:hover,
.text-button:hover:not(:disabled) {
    text-decoration: underline;
}

.resend-area p {
    margin: 0;
}

.recovery-email,
.recovery-notice {
    background: #f0f7fc;
    border: 1px solid #dceaf4;
    padding: 14px;
    border-radius: 11px;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.recovery-email small,
.recovery-email strong {
    display: block;
}

.recovery-email small {
    color: var(--muted);
}

.recovery-page input.verification-code {
    text-align: center;
    font-size: 26px;
    letter-spacing: .3em;
    font-weight: 700;
    padding-left: calc(14px + .3em);
}

.password-wrapper {
    position: relative;
}

.recovery-page .password-wrapper input {
    padding-right: 88px;
}

.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font: 600 12px 'Plus Jakarta Sans', sans-serif;
    padding: 12px 8px;
    cursor: pointer;
}

.password-strength progress {
    display: block;
    width: 100%;
    height: 7px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    accent-color: #0075b5;
}

.password-strength progress::-webkit-progress-bar {
    background: #e4edf4;
    border-radius: 8px;
}

.password-strength progress::-webkit-progress-value {
    background: #0075b5;
    border-radius: 8px;
}

.password-strength progress.fraca {
    accent-color: #dc2626;
}

.password-strength progress.media {
    accent-color: #d97706;
}

.password-strength progress.forte {
    accent-color: #059669;
}

.password-strength progress.fraca::-webkit-progress-value {
    background: #dc2626;
}

.password-strength progress.media::-webkit-progress-value {
    background: #d97706;
}

.password-strength progress.forte::-webkit-progress-value {
    background: #059669;
}

.recovery-notice {
    color: #075078;
    font-size: 12px;
}

.success-icon {
    background: #e0f5eb;
    color: #08764d;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

.recovery-page .alert {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.recovery-page .alert-error {
    background: #fef2f2;
    color: #991b1b;
}

.recovery-page .alert-success {
    background: #e8f7ef;
    color: #166534;
}

@media(max-width:900px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-banner {
        display: none;
    }

    .auth-content {
        padding: 28px 16px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        font-size: 25px;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 28px;
    }

    .mobile-brand i {
        font-size: 30px;
        color: var(--primary);
    }
}

@media(max-width:480px) {
    .auth-content {
        padding: 20px 12px;
        align-items: start;
    }

    .auth-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .auth-heading h2,
    .success-content h2 {
        font-size: 26px;
    }

    .auth-step {
        flex-basis: 66px;
    }

    .auth-steps {
        gap: 5px;
        margin-bottom: 25px;
    }

    .verification-icon {
        width: 56px;
        height: 56px;
        font-size: 30px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .recovery-page * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}