* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --verde: #059669;
    --verde-hover: #047857;
    --azul: #12345d;
    --texto: #1f2937;
    --secundario: #6b7280;
    --borde: #dfe4e9;
}

body {
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--texto);
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.recovery-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
}

.recovery-card {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #e7ebef;
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(18, 52, 93, .09);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color .2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: #047857;
    text-decoration: underline;
}

.brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 10px;
}

.brand img {
    display: block;
    width: min(175px, 62%) !important;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

.eyebrow {
    text-align: center;
    color: var(--verde);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 5px;
}

h1 {
    color: var(--azul);
    font-size: clamp(23px, 5vw, 28px);
    line-height: 1.2;
    text-align: center;
    letter-spacing: -.6px;
}

.intro {
    margin: 7px auto 14px;
    max-width: 340px;
    text-align: center;
    color: var(--secundario);
    font-size: 12px;
    line-height: 1.45;
}

.account-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 13px;
    border: 1px solid #dce1e6;
    border-radius: 12px;
    background: #e9edf1;
}

.account-option {
    border: 0;
    border-radius: 9px;
    padding: 9px;
    background: transparent;
    color: #6b7280;
    font: 600 12px Inter, sans-serif;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.account-option.active {
    background: var(--azul);
    color: #fff;
    box-shadow: 0 2px 5px rgba(18, 52, 93, .16);
}

form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

input:not([type="hidden"]) {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--texto);
    font: 13px Inter, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}

input::placeholder {
    color: #9ca3af;
}

.primary-button {
    width: 100%;
    min-height: 43px;
    margin-top: 5px;
    border: none;
    border-radius: 11px;
    background: var(--verde);
    color: white;
    font: 700 12px Inter, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(5, 150, 105, .16);
    transition: background .2s ease, transform .1s ease, opacity .2s ease;
}

.primary-button:hover {
    background: var(--verde-hover);
}

.primary-button:active {
    transform: translateY(1px);
}

.primary-button:disabled {
    opacity: .65;
    cursor: wait;
}

.separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 10px;
}

.separator span {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.separator small {
    color: #9ca3af;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.security-note {
    margin-top: 12px;
    color: #8b929c;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.message:empty {
    display: none;
}

@media (max-width: 600px) {
    .recovery-page {
        min-height: 100svh;
        align-items: flex-start;
        padding: 10px 10px 18px;
    }

    .recovery-card {
        max-width: 420px;
        margin: 0 auto;
        padding: 17px 15px;
        border-radius: 16px;
    }

    .back-link {
        margin-bottom: 7px;
        font-size: 12px;
    }

    .brand {
        margin-bottom: 7px;
    }

    .brand img {
        width: min(135px, 52%) !important;
        height: auto !important;
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    h1 {
        font-size: 23px;
        line-height: 1.15;
    }

    .intro {
        margin: 6px auto 11px;
        font-size: 11px;
    }

    .account-selector {
        padding: 3px;
        margin-bottom: 10px;
    }

    .account-option {
        padding: 8px 6px;
        font-size: 12px;
    }

    form {
        gap: 5px;
    }

    label {
        margin-top: 2px;
        font-size: 10px;
    }

    input:not([type="hidden"]) {
        min-height: 39px;
        padding: 9px 10px;
        border-radius: 9px;
        font-size: 12px;
    }

    .primary-button {
        min-height: 40px;
        border-radius: 10px;
        font-size: 12px;
    }

    .separator {
        margin: 12px 0 8px;
    }

    .security-note {
        margin-top: 9px;
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .recovery-card {
        padding: 14px 12px;
    }

    h1 {
        font-size: 21px;
    }

    .brand img {
        width: 120px !important;
        height: auto !important;
    }
}