
/* =========================================================
   FREDELIN TURISMO — RECUPERAÇÃO DE SENHA
   Arquivo: css/recuperar.css
   ========================================================= */

/* 1. Variáveis visuais */
:root {
    --azul-escuro: #082b59;
    --azul-principal: #0b4f9c;
    --azul-claro: #eaf3ff;
    --azul-hover: #063b78;
    --branco: #ffffff;
    --texto: #263449;
    --texto-secundario: #718096;
    --borda: #dce5f0;
    --fundo: #f2f6fc;
    --verde: #18794e;
    --verde-fundo: #e9f8ef;
    --vermelho: #b42318;
    --vermelho-fundo: #fff0ef;
    --sombra: 0 20px 60px rgba(8, 43, 89, 0.12);
    --raio: 22px;
}

/* 2. Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Poppins", Arial, sans-serif;
    color: var(--texto);
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(11, 79, 156, 0.09),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(8, 43, 89, 0.08),
            transparent 30%
        ),
        var(--fundo);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 3. Área principal */
.recuperar-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* 4. Cartão */
.recuperar-card {
    width: 100%;
    max-width: 490px;
    padding: 42px 38px 30px;
    background: var(--branco);
    border: 1px solid rgba(220, 229, 240, 0.9);
    border-radius: var(--raio);
    box-shadow: var(--sombra);
    text-align: center;
    animation: aparecer 0.55s ease both;
}

/* 5. Animação de entrada */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. Marca e logotipo */
.marca {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    margin-bottom: 15px;
    padding: 8px;
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 24px;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.marca:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(8, 43, 89, 0.12);
}

.marca img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.marca-legenda {
    margin-bottom: 8px;
    color: var(--azul-principal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 7. Títulos */
.recuperar-card h1 {
    margin-bottom: 13px;
    color: var(--azul-escuro);
    font-size: clamp(25px, 5vw, 31px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.descricao {
    max-width: 365px;
    margin: 0 auto 28px;
    color: var(--texto-secundario);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

/* 8. Formulário */
#formRecuperar {
    width: 100%;
    text-align: left;
}

#formRecuperar label {
    display: block;
    margin-bottom: 9px;
    color: var(--azul-escuro);
    font-size: 13px;
    font-weight: 600;
}

#email {
    display: block;
    width: 100%;
    min-height: 53px;
    padding: 14px 16px;
    border: 1px solid var(--borda);
    border-radius: 12px;
    outline: none;
    background: #fbfdff;
    color: var(--texto);
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#email::placeholder {
    color: #9aa8ba;
    opacity: 1;
}

#email:hover {
    border-color: #a9c4e5;
}

#email:focus {
    border-color: var(--azul-principal);
    background: var(--branco);
    box-shadow: 0 0 0 4px rgba(11, 79, 156, 0.1);
}

#email:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* 9. Botão de envio */
#btnRecuperar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin-top: 20px;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--azul-principal),
        var(--azul-escuro)
    );
    color: var(--branco);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(8, 43, 89, 0.17);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

#btnRecuperar span {
    font-size: 19px;
    line-height: 1;
}

#btnRecuperar:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        var(--azul-hover),
        #041e40
    );
    box-shadow: 0 12px 24px rgba(8, 43, 89, 0.23);
}

#btnRecuperar:active:not(:disabled) {
    transform: translateY(0);
}

#btnRecuperar:focus-visible {
    outline: 3px solid rgba(11, 79, 156, 0.35);
    outline-offset: 4px;
}

#btnRecuperar:disabled {
    cursor: wait;
    opacity: 0.7;
    box-shadow: none;
}

/* 10. Mensagens de retorno */
.mensagem {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.mensagem.sucesso {
    display: block;
    color: var(--verde);
    background: var(--verde-fundo);
    border: 1px solid #b8e6c9;
}

.mensagem.erro {
    display: block;
    color: var(--vermelho);
    background: var(--vermelho-fundo);
    border: 1px solid #ffd1cc;
}

/* 11. Seletor de idioma */
.seletor-idioma {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #edf1f6;
    text-align: left;
}

.seletor-idioma label {
    color: var(--texto-secundario);
    font-size: 12px;
    font-weight: 500;
}

#idioma {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid var(--borda);
    border-radius: 10px;
    outline: none;
    background-color: var(--branco);
    color: var(--texto);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#idioma:focus {
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 3px rgba(11, 79, 156, 0.1);
}

/* 12. Links de navegação */
.links-conta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.links-conta p {
    color: var(--texto-secundario);
    font-size: 12px;
    line-height: 1.7;
}

.links-conta a {
    color: var(--azul-principal);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.links-conta a:hover {
    color: var(--azul-hover);
    text-decoration: underline;
}

.voltar-inicio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
}

/* 13. Rodapé */
.rodape {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #edf1f6;
    color: #8794a5;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 14. Responsividade para tablets e celulares */
@media (max-width: 600px) {
    .recuperar-container {
        padding: 24px 15px;
    }

    .recuperar-card {
        max-width: 440px;
        padding: 32px 24px 24px;
        border-radius: 18px;
    }

    .marca {
        width: 92px;
        height: 92px;
        border-radius: 20px;
    }

    .descricao {
        font-size: 13px;
        margin-bottom: 24px;
    }

    #email,
    #btnRecuperar {
        min-height: 51px;
    }

    .seletor-idioma {
        margin-top: 22px;
    }

    .links-conta {
        margin-top: 22px;
    }
}

/* 15. Celulares pequenos */
@media (max-width: 360px) {
    .recuperar-container {
        padding: 16px 10px;
    }

    .recuperar-card {
        padding: 27px 17px 21px;
    }

    .marca {
        width: 80px;
        height: 80px;
    }

    .recuperar-card h1 {
        font-size: 25px;
    }

    #btnRecuperar {
        padding: 12px 9px;
        font-size: 12px;
    }
}

/* 16. Acessibilidade: reduzir animações */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
