/* ==================================================================
   Estilos Gerais e Reset
   ================================================================== */
   * {
    font-family: 'Roboto', sans-serif; /* Define a fonte padrão */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Garante que o padding e a borda não afetem a largura */
}

body {
    display: flex;
    flex-direction: column; /* Organiza os elementos na coluna */
    height: 100vh; /* Faz o body ocupar toda a altura da tela */
    background-color: #1A1A1A;
    line-height: 1.6;
    min-height: 100%;
}

/* Conteúdo principal (main) */
main {
    flex: 1; /* Faz o conteúdo ocupar o espaço restante */
    padding: 20px;
}

/* ==================================================================
   Estilos para Telas Maiores (1024px e acima)
   ================================================================== */
   @media only screen and (min-width: 1024px) {

    /* Estilos para o Header e Logo */
    header {
        position: relative; /* Garante que o logo seja posicionado relativamente ao header */
        z-index: 100; /* Garante que o header fique acima de outros elementos */
    }
    
    .logo-title {
        position: absolute;
        top: 15px; /* Ajuste a distância do topo conforme necessário */
        left: 20px; /* Ajuste a distância da esquerda conforme necessário */
        z-index: 101; /* Garante que o logo fique acima do menu lateral */
    }
    
    .logo-title a {
        color: #979797;
        font: 550 26px / 60px DIN_Regular, Arial, Verdana, sans-serif;
        font-style: italic;
        text-decoration: none; /* Remove o sublinhado do link */
    }    

    #caixa-cadastrar{
        margin-top: 10vh;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    #title_register{
        font-size: 32px;
        color: #979797;
        text-align: center;
        padding-top: 30px;
    }

    form {
        background-color: #202020;
        width: 350px;
        position: relative;
        border-radius: 10px;
        border: 1px solid #383636;
        padding: 20px;
    }

    #email_register, #name_register, #username_register, #password_register, #password_confirmation {
        background: #F9F9F9;
        border: 1px solid #E6E6E6;
        border-radius: 3px;
        height: 40px;
        width: 270px;
        padding-left: 10px;
        margin-top: 10px;
        margin-bottom: 5px;
        margin-left: 15px;
    }

    #registerBtn {
        font: 14px / 20px Roboto, Helvetica, Arial, Verdana, sans-serif;
        color: white;
        border-radius: 10px;
        margin-top: 30px;
        margin-bottom: 10px;
        margin-left: 15px;
        width: 270px;
        height: 45px;
        background-color: #5952d6
    }

    #registerBtn:hover {
        font-size: 15px;
        border: 1px solid gray;
        cursor: pointer;
        background-color: var(--cor-hover); /* Cor de fundo no hover */
        background-color: #6761df
    }

    .login_conta {
        color: white;
        background-color: #202020;
        margin-top: 10px;
        padding-left: 50px;
        padding-top: 10px;
        width: 350px;
        height: 50px;
        position: relative;
        border-radius: 10px;
        display: flex;
        border: 1px solid #383636;
    }

    .div-aviso_termos{
        display: flex;
        text-align: center;
        margin-top: 20px; 
    }

    .aviso_termos {
        font-size: 13px;
        color: #979797;
    }

    footer {
        color: #979797;
        text-align: center;
        padding-top: 10px;
        margin-top: auto; /* Isso empurra o footer para o final */
    }

    footer ul {
        list-style: none;
        padding: 0;
    }

    footer ul li {
        display: inline;
        margin: 0 10px;
    }

    footer ul li a {
        color: #979797;
        text-decoration: none;
    }

    footer ul li a:hover {
        text-decoration: underline;
    }
}

/* ==================================================================
   Estilos para Telas Menores (500px e abaixo)
   ================================================================== */
   @media only screen and (max-width: 500px) {

    #caixa-cadastrar{
        margin-top: 10vh;
        margin-left: 5%;
        width: 90%;
    }
    
    label {
        background-color: #202020;
        color: #979797;
        margin-top: 10px;
        margin-left: 5px;
    }
    
    #title_register{
        font-size: 24px;
        color: #979797;
        text-align: center;
        padding-top: 30px;
    }
    
    form {
        background-color: #202020;
        width: 100%;
        position: relative;
        border-radius: 10px;
        border: 1px solid #383636;
        padding: 15px;
    }
    
    #email_register, #name_register, #username_register, #password_register, #password_confirmation {
        background: #F9F9F9;
        border: 1px solid #E6E6E6;
        border-radius: 5px;
        height: 30px;
        width: 100%;
        padding-left: 10px;
        margin-top: 10px;
        margin-bottom: 5px;
    }
    
    #registerBtn {
        font: 14px / 20px Roboto, Helvetica, Arial, Verdana, sans-serif;
        color: white;
        border-radius: 5px;
        margin-top: 20px;
        margin-bottom: 20px;
        width: 100%;
        height: 45px;
        background-color: #5952d6
    }
    
    #registerBtn:hover {
        font-size: 15px;
        border: 1px solid gray;
        cursor: pointer;
        background-color: var(--cor-hover); /* Cor de fundo no hover */
        background-color: #6761df
    }
    
    .login_conta {
        color: white;
        background-color: #202020;
        margin-top: 10px;
        padding-left: 100px;
        padding-top: 15px;
        width: 100%;
        height: 50px;
        position: relative;
        border-radius: 10px;
        display: flex;
        border: 1px solid #383636;
    }

    .div-aviso_termos{
        display: flex;
        text-align: center;
        margin-top: 20px; 
    }

    .aviso_termos {
        font-size: 13px;
        color: #979797;
    }

    footer {
        color: #979797;
        text-align: center;
        padding-top: 10px;
        margin-top: auto; /* Isso empurra o footer para o final */
    }
    
    footer ul {
        list-style: none;
        padding: 0;
    }
    
    footer ul li {
        display: inline;
        margin: 0 10px;
    }
    
    footer ul li a {
        color: #979797;
        text-decoration: none;
    }
    
    footer ul li a:hover {
        text-decoration: underline;
    }
}