@import url('variaveis.css');

body{
    background-color: white;
}

.destaque-cadastro{
    /* Proporção */
    min-width: 1080px;
    max-width: 100%;
    padding: 50px 300px;
    
    /* Cores */
    background-color: var(--corAzul);
    color: var(--corBranco);

}

.destaque-cadastro h2{
    max-width: 1280px;
    margin: 0px 20px;
}

main article{
    /* Proporção */
    min-width: 50%;
    max-width: 100%;

    margin: auto;
}

.bordas{
    /* Posicionamento e Alinhamento*/
    max-width: 1280px;

    /* Bordas */
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.cadastro{
    /* Proporção */
    padding: 40px;

    /* Grid de alinhamento */
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: fit-content;
    gap: 150px;
}

.titulo{
    padding-top: 50px;
    text-align: center;
    color: var(--corAzul);
}

label{
    min-height: 25px;

    font-weight: bold;
    color: var(--corCinzaEscuro);
    max-width: fit-content;
}

input{
    /* Dimensionamento */
    min-height: 30px;

    /* Cores */
    border: 1px solid var(--corCinzaEscuro); 
    border-radius: 5px;
}


select{
    /* Dimensionamento */
    min-height: 35px;

    /* Cores */
    color: var(--corPreto);
    background-color: var(--corBranco);
    border: 1px solid var(--corCinzaEscuro); 
    border-radius: 5px;
}

.grupo-input{
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    min-width: 100%;
}

aside.grupo-input{
    /* Dimensionamento */
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 50%);
    gap: 20px;
    margin: 0px;
}

.min-grupo-input input{
    width: 90%;
}

.btn-cadastro{
    /* Dimensionamento */
    margin: auto;
    display: block;
    padding: 10px 100px;
    font-size: 1.5em;
    font-weight: bold;

    /* Cores */
    color: var(--corBranco);
    background-color: var(--corAzul);
    border: 1px solid var(--corAzul);
    border-radius: 10px;

}

.btn-cadastro:hover{
    transition: 500ms;
    color: var(--corAzul);
    background-color: var(--corBranco);
    border: 1px solid #0F5A93;
    cursor: pointer;
}

.btn-cadastro{
    /* Dimensionamento */
    margin: auto;
    display: block;
    padding: 1% 10%;
    font-size: 1.5em;
    font-weight: bold;

    /* Cores */
    color: var(--corBranco);
    background-color: var(--corAzul);
    border: 1px solid var(--corAzul);
    border-radius: 10px;

}

.btn-cadastro:hover{
    transition: 500ms;
    color: var(--corAzul);
    background-color: var(--corBranco);
    border: 1px solid #0F5A93;
    cursor: pointer;
}

/* ---------- Página de Cadastro USUARIO ---------- */

#form-cadastro {
    margin-top: 70px;
    padding-top: 30px;
    padding-bottom: 90px;
}

section.dados-pessoais{
    display: flex;
    flex-direction: column ;
    margin-bottom: 15px;
    min-width: 300px;
}

section.dados-endereco{
    display: flex;
    flex-direction: column ;
    margin-bottom: 15px;
    min-width: 300px;
}


/* ---------- Página de Cadastro ONG ---------- */

#form-ONG{
    margin-top: 3%;
    padding-top: 30px;
    padding-bottom: 90px;
}

#descricao{
    box-sizing: border-box;

    height: 100px;
    text-align: justify;
    resize: none;
    overflow: hidden;      /* 🔒 Impede que o texto “vaze” da caixa */
    white-space: pre-wrap; /* 🔄 Quebra linhas automaticamente */
    word-wrap: break-word; /* 🔤 Quebra palavras longas */
}

/* ---------- Página de Login ---------- */

.login{
    margin-top: 30px;
    display: flex;
    flex-wrap: nowrap;
}

#form-login {
    padding: 0px 5%;
    margin-left: 5%;

    width: 280px;
    row-gap: 10px;

}

.dados-login{
    width: 250px;
}

.dados-login h1{
    text-align: center;
    padding: 30% 0px 25% 0px;
    color: var(--corAzul);
}

.btn-recuperar{
    /* Alinhamento */
    text-align: center;
    margin: auto;

    /* Cores e Estilos */
    color: var(--corAzul);
    background-color: white;
    border: 0px;
    font-size: 1em;
    font-weight: bold;
}
.btn-recuperar:hover{
    transition: 500ms;
    color: var(--corAzul);
    background-color: white;
    text-decoration: underline;
    cursor: pointer;
}

.btn-login{
    /* Dimensionamento */
    margin: auto;
    margin-top: 50px;
    display: block;
    padding: 10px 80px;
    font-size: 1.2em;
    font-weight: bold;

    /* Cores e Estilos */
    color: var(--corBranco);
    background-color: var(--corAzul);
    border: 1px solid var(--corAzul);
    border-radius: 10px;
}

.btn-login:hover{
    transition: 500ms;
    color: var(--corAzul);
    background-color: var(--corBranco);
    border: 1px solid #0F5A93;
    cursor: pointer;
}


.btn-cadastrar-se{
    display: flex;
    margin-top: 20px;
}

.imagem-maos{
    /* Proporção */
    width: fit-content;
    height: 600px;
    display: flex;
    justify-content: right;
}

.ilustracao{
    /* Proporção */
    width: 90%; 
    height: 100%;

    /* Borda Arredondada */
    border-radius: 0px 10px 10px 0px;

    /* Alinhamento */
    display: flex;
    object-fit: cover;
}

/* Tablets e telas médias */
@media (max-width: 992px) {

    .cadastro {
        grid-template-columns: 1fr;  /* DUAS COLUNAS → UMA COLUNA */
        gap: 40px;
        padding: 30px;
    }

    .bordas {
        margin: 20px;
    }
}

/* Celulares grandes */
@media (max-width: 768px) {

    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    .cadastro {
        padding: 25px 20px;
        gap: 30px;
    }

    .grupo-input {
        min-width: 100%;
    }

    aside.grupo-input {
        display: flex;
        flex-direction: column; /* COLUNA EM VEZ DE GRID */
        gap: 10px;
    }

    .min-grupo-input input {
        width: 100%; /* Corrige inputs cortando na direita */
    }

    .titulo {
        font-size: 1.7rem;
        padding-top: 20px;
    }

    .btn-cadastro {
        width: 80%;
        padding: 12px 0;
        font-size: 1.2rem;
    }

    .btn-recuperar {
        text-align: center;
        display: block;
        margin: 10px auto;
        font-size: 0.9rem;
    }
}

/* Celulares pequenos (≤ 480px) */
@media (max-width: 480px) {

    .cadastro {
        padding: 15px;
        gap: 20px;
    }

    label {
        font-size: 0.9rem;
    }

    input,
    textarea,
    select {
        font-size: 0.9rem;
        min-height: 35px;
    }

    #descricao {
        height: 90px;
    }

    .btn-cadastro {
        font-size: 1rem;
        padding: 10px;
    }

    #form-ONG{
    margin-top: 70px;
    padding-top: 15%;
    padding-bottom: 15%;
}
}

/* Remover imagem no mobile (≤ 768px) */
@media (max-width: 768px) {

    .login {
        flex-direction: column;      /* Empilha conteúdo */
        align-items: center;
        text-align: center;
    }

    .imagem-maos {
        display: none;               /* Remove a imagem */
    }

    #form-login {
        margin-left: 0;
        width: 90%;                  /* Aumenta largura do formulário */
        padding: 0;
    }

    .dados-login h1 {
        padding: 40px 0 20px 0;      /* Ajusta espaçamento */
    }

    .btn-login {
        margin-top: 20px;
        width: 100%;
    }

    .btn-cadastrar-se {
        display: block;
        width: 100%;
        justify-content: center;
    }
}
