/* Reset e estilo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: #f2f2f2;
}


/* Header fixo no topo */
.container_header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    background-color: #cc0000;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 0.33rem;
    z-index: 1000;
}

.container_img {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
}

.container_img img {
    height: 80%;
    width: 70%;
}

.divisoria {
    background-color: white;
    height: 80%;
    width: 0.15rem;
}

.nav {
    width: 70%;
    display: flex;
    justify-content: center;
    gap: 5rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    border-radius: 15px;
}

.nav a:hover {
    background-color: #9A1915;
}

/* Menu */
.icon-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 35px;
    height: 24px;
    cursor: pointer;
    margin-right: 1rem;
  }
  
  .line1, .line2, .line3 {
     background-color: #ffffff;
     height: 4px;
     width: 100%;
     border-radius: 2px;
  }
  
  .menu-dropdown {
    display: none;
    background-color: #9a1915;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 150px;
    border-radius: 8px;
    z-index: 10;
  }
  
  .menu-dropdown ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-direction: column;
  }
  
  .menu-dropdown ul li {
    margin: 0.1rem;
  }
  
  .menu-dropdown ul li a {
    text-decoration: none;
    font-size: 10px;
    color: #ffffff;
    font-size: 25px;
    display: block;
  }
  
  .menu-dropdown ul li a:hover {
    background-color: #5c0202;
    border-radius: 5px;
  }

/* Container de login centralizado */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    margin-top: 8rem;
    /* Espaço para o header */
}

.header .logo {
    width: 150px;
    margin-bottom: 20px;
}

.header h2 {
    color: #cc0000;
    /* Cor tradicional do SENAI */
    font-size: 1.5em;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form label {
    color: #333333;
    margin-top: 10px;
    text-align: left;
}

.login-form input {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.login-button {
    margin-top: 20px;
    padding: 10px;
    background-color: #cc0000;
    /* Cor do SENAI */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-button:hover {
    background-color: #b80000;
}

.links {
    margin-top: 15px;
    font-size: 0.9em;
}

.links a {
    color: #cc0000;
    text-decoration: none;
    margin: 5px;
}

.links a:hover {
    text-decoration: underline;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .container_header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        text-align: center;
    }

    .container_img {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .container_img img {
        width: 50%;
    }

    .nav {
        width: 100%;
        justify-content: space-around;
        margin-top: 1rem;
    }

    .nav a {
        font-size: 18px;
        padding: 8px;
    }

    .menu-dropdown {
        width: 100%;
        position: relative;
        top: 0;
        right: 0;
    }

    .menu-dropdown ul {
        padding: 10px;
    }

    .login-container {
        width: 90%;
        margin-top: 4rem;
    }

    .header h2 {
        font-size: 1.3em;
    }

    .login-form label,
    .login-form input,
    .login-button {
        width: 100%;
    }

    .login-form label {
        text-align: center;
    }

    .login-button {
        width: 100%;
    }
}

/* Responsividade para dispositivos móveis muito pequenos */
@media (max-width: 480px) {
    .header h2 {
        font-size: 1.2em;
    }

    .nav {
        display: none; /* Esconde o menu de navegação para telas muito pequenas */
    }

    .icon-menu {
        display: block;
    }

    .login-container {
        padding: 10px;
    }
}
