/* =========================
   CONFIGURAÇÕES GERAIS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #3b3b4f;
    color: #222222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================
   TOPO
========================= */

.topo {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
}

.logo img {
    width: 120px;
    height: auto;
    display: block;
}

.logo a {
    text-decoration: none;
    color: #222222;
    font-size: 14px;
    font-weight: 700;
}

.ajuda {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #0c0c0c;
    font-size: 12px;
}

.icone-ajuda {
    width: 11px;
    height: 11px;
    border: 1px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: normal;
    color: #333333;
}

.ajuda:hover {
    color: #e87511;
}

.ajuda:hover .icone-ajuda {
    border-color: #e87511;
}

/* =========================
   ÁREA PRINCIPAL
========================= */

.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 25px 20px 40px;
    background-color: #ffffff;
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.login-box h1 {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 45px;
}

.login-box h1 strong {
    font-weight: 700;
}

/* =========================
   LOGIN SOCIAL
========================= */

.login-social {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-bottom: 17px;
}

.botao-social {
    height: 37px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    transition: filter 0.2s, transform 0.1s;
}

.botao-social:hover {
    filter: brightness(0.96);
}

.botao-social:active {
    transform: scale(0.98);
}

.google {
    width: 100px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #d6dce5;
}

.facebook {
    width: 122px;
    background: #1468f2;
    color: #ffffff;
    border: 1px solid #1468f2;
}

.icone-google {
    width: 25px;
    height: 25px;
}

.icone-facebook {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* =========================
   SEPARADOR
========================= */

.separador {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px;
}

.separador::before,
.separador::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #dddddd;
}

.separador span {
    color: #999999;
    font-size: 13px;
    white-space: nowrap;
}

/* =========================
   CAMPOS
========================= */

.campo {
    margin-bottom: 11px;
}

.campo label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 7px;
}

.campo input {
    width: 100%;
    height: 37px;
    padding: 0 12px;
    border: 1px solid #d4d8de;
    border-radius: 5px;
    background-color: #ffffff;
    color: #222222;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

/*
   AURA DE FOCO
   A cor roxa original era:
   #7c3aed
   Para este projeto usamos laranja.
*/

.campo input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}

.campo-senha-wrapper {
    position: relative;
}

.campo-senha-wrapper input {
    padding-right: 42px;
}

/* =========================
   OLHO DA SENHA
========================= */

/* O wrapper que segura o input e o botão */
.campo-senha-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dá espaço à direita do input para o ícone não ficar em cima do texto */
.campo-senha-wrapper input {
    width: 100%;
    padding-right: 45px; 
}

/* ESTE É O BOTÃO: Agora ele fica fixo e visível direto! */
#botaoOlho {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Removemos o opacity: 0 e o visibility: hidden para ele nunca sumir */
}

/* CONTROLE DE TAMANHO E COR DOS ÍCONES SVG */
#botaoOlho svg {
    width: 22px;   /* Tamanho do ícone */
    height: 22px;  /* Tamanho do ícone */
    color: #7c3aed;   /* Cor padrão do ícone */
    transition: color 0.2s;
}

/* Cor do ícone quando o mouse passa por cima */
#botaoOlho svg:hover {
    color: #000; 
}
/* =========================
   MENSAGENS DE ERRO
========================= */

.mensagem-erro {
    display: none;
    margin-top: 5px;
    color: #e53935;
    font-size: 10px;
    line-height: 1.35;
}

.mensagem-erro::before {
    content: "×";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 11px;
    height: 11px;
    margin-right: 4px;
    border: 1px solid #e53935;
    border-radius: 50%;
    font-size: 9px;
    line-height: 9px;
}

/* Campo com erro */

.campo.erro input {
    border-color: #e53935 !important;
    background-color: #fffafa;
    box-shadow: none !important;
}

.campo.erro .mensagem-erro {
    display: block;
}

/* =========================
   BOTÃO CONTINUAR
========================= */

.botao-continuar {
    width: 100%;
    height: 40px;
    margin-top: 2px;
    border: none;
    border-radius: 22px;
    background-color: #f0f1f3;
    color: #999999;
    font-size: 13px;
    font-weight: 500;
    cursor: not-allowed;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.botao-continuar.ativo {
    background-color: #7c3aed;
    color: #ffffff;
    cursor: pointer;
}

.botao-continuar.ativo:hover {
    background-color: #7c3aed;
}

.botao-continuar.ativo:active {
    transform: scale(0.99);
}

/* =========================
   CRIAR CONTA
========================= */

.criar-conta {
    text-align: center;
    margin-top: 19px;
    color: #333333;
    font-size: 11px;
}

.criar-conta a {
    color: #7c3aed;
    font-weight: 400;
    text-decoration: none;
}

.criar-conta a:hover {
    text-decoration: underline;
}

/* =========================
   TERMOS
========================= */

.termos {
    text-align: center;
    margin: 0 auto;
    margin-top: 277px;
    max-width: 340px;
    color: #666666;
    font-size: 9px;
    line-height: 1.75;
}

.termos a {
    color: #7c3aed;
    text-decoration: underline;
}

.termos a:hover {
    color: #5a2cb8;
}

/* =========================
   RODAPÉ
========================= */

footer {
    text-align: center;
    padding: 17px 20px;
    color: #aaaaaa;
    background-color: #ffffff;
    font-size: 9px;
}

/* ==================================================
   CONFIGURAÇÕES EXCLUSIVAS DO MOBILE
   Tudo aqui afeta somente telas de até 600px
================================================== */

@media (max-width: 600px) {

    /* ===== PÁGINA / CONTEÚDO ===== */

    .logo img {
        width: 60px;
    }

    .login-container {
        padding: 25px 20px 35px;
    }

    .login-box {
        max-width: 360px;
    }


    /* ===== TOPO ===== */

    .topo {
        height: 80px;
        padding: 0 20px;
    }

    .logo a {
        font-size: 18px;
    }

    .ajuda {
        font-size: 16px;
    }


    /* ===== TÍTULO ===== */

    .login-box h1 {
        font-size: 16px;
        margin-bottom: 35px;
        transform: translateY(10px);
    }


    /* ===== GOOGLE + FACEBOOK ===== */

    .login-social {
        gap: 25px;
        margin-bottom: 20px;
    }

    .botao-social {
        height: 44px;
        font-size: 14px;
        gap: 10px;
    }

    .google {
        width: 145px;
    }

    .facebook {
        width: 145px;
    }

    .icone-google {
        width: 28px;
        height: 28px;
    }

    .icone-facebook {
        font-size: 28px;
    }


    /* ===== SEPARADOR ===== */

    .separador {
        gap: 12px;
        margin-bottom: 18px;
    }

    .separador span {
        font-size: 13px;
    }


    /* ===== LABEL DOS CAMPOS ===== */

    .campo label {
        font-size: 16px;
        margin-bottom: 8px;
    }


    /* ===== CAMPOS ===== */

    .campo {
        margin-bottom: 19px;
    }

    .campo input {
        height: 45px;
        font-size: 18px;
        padding: 0 18px;
    }


    /* ===== MENSAGEM DE ERRO ===== */

    .mensagem-erro {
        margin-top: 7px;
        font-size: 11px;
    }


    /* ===== OLHO DA SENHA ===== */

    .botao-olho {
        width: 34px;
        height: 34px;
        right: 8px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
    }

    .campo-senha:focus-within #botaoOlho {
    opacity: 1;
    visibility: visible;
}


    /* ===== CONTINUAR ===== */

    .botao-continuar {
        height: 46px;
        font-size: 15px;
        margin-top: 5px;
    }


    /* ===== CRIAR CONTA ===== */

    .criar-conta {
        margin-top: 22px;
        font-size: 13px;
    }


    /* ===== TERMOS ===== */

    .termos {
        margin-top: 290px;
        font-size: 13px;
        line-height: 1.9;
    }


}

/* ============================= */
/* JANELA DE AJUDA */
/* ============================= */

.modal-ajuda {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
    z-index: 9999;
}

.modal-ajuda.aberto {
    display: flex;
}

.modal-conteudo {
    position: relative;

    width: 100%;
    max-width: 390px;

    background: #ffffff;
    border-radius: 12px;

    padding: 30px 28px 25px;

    text-align: center;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.20);

    animation: aparecerModal 0.2s ease-out;
}

@keyframes aparecerModal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botão X */

.modal-fechar {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 32px;
    height: 32px;

    border: none;
    background: transparent;

    color: #777;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.modal-fechar:hover {
    color: #222;
}

/* Ícone */

.modal-icone {
    width: 50px;
    height: 50px;

    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff3e8;
}

.modal-icone img {
    width: 28px;
    height: 28px;

    object-fit: contain;
}

/* Título */

.modal-conteudo h2 {
    margin: 0 0 14px;

    color: #222;

    font-size: 19px;
    font-weight: 600;
}

/* Textos */

.modal-conteudo p {
    margin: 0 0 12px;

    color: #555;

    font-size: 13px;
    line-height: 1.6;
}

.modal-conteudo strong {
    color: #333;
    font-weight: 600;
}

/* Botão Entendi */

.modal-ok {
    width: 100%;
    height: 40px;

    margin-top: 8px;

    border: none;
    border-radius: 20px;

    background: #7c3aed;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.modal-ok:hover {
    background: #7c3aed;
}


/* ============================= */
/* CELULAR */
/* ============================= */

@media (max-width: 600px) {

    .modal-conteudo {
        max-width: 340px;
        padding: 27px 22px 22px;
        border-radius: 11px;
    }

    .modal-conteudo h2 {
        font-size: 18px;
    }

    .modal-conteudo p {
        font-size: 12px;
        line-height: 1.6;
    }

}