/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    /* Se quiser garantir que não apareça branco no fundo do body */
    background-color: #1F6B5C;
    /* Remover qualquer margem padrão do body */
    margin: 0;
}

/* CONTAINER PRINCIPAL */
.login-container {
    /* Garante que ele ocupe todo o espaço horizontal */
    width: 100%;
    /* Deixe min-height para ocupar a tela em desktops, mas sem forçar rolagem extra no mobile */
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    /* Forçamos a cor de fundo aqui também para cobrir toda a área: */
    background-color: #1F6B5C;
}

/* SEÇÃO ESQUERDA (TOPO EM MOBILE) */
.left-section {
    /* Mantém branca no desktop e no mobile */
    background-color: #ffffff;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOGO */
.logo {
    max-width: 100%;
    height: auto;
}

/* SEÇÃO DIREITA (PARTE INFERIOR EM MOBILE) */
.right-section {
    /* Também verde, para dar continuidade */
    background-color: #1F6B5C;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    color: white;
    padding: 40px 20px;
    position: relative;
}

/* TÍTULO */
.right-section h2 {
    font-size: 38px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

/* FORMULÁRIO */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group label {
    font-size: 18px;
    margin-bottom: 5px;
    color: white;
    width: 90%;
    text-align: center;
}

.form-group input {
    width: 90%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #fff;
}

.form-group input:focus {
    border-color: #000000;
    transform: scale(1.05);
}

/* AGRUPAMENTO DA SENHA */
.password-group {
    position: relative;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg {
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
    fill: #000000;
}

.toggle-password:hover svg {
    fill: #000;
}

/* BOTÃO DE LOGIN */
.login-button {
    width: 30%;
    padding: 12px;
    border: 0.5px solid #fff;
    border-radius: 5px;
    background-color: #3C4855;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    text-align: center;
}

.login-button:hover {
    transform: scale(1.05);
}

/* INFORMAÇÕES DE CONTATO */
.contact-info {
    font-size: 14px;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 400px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* 
   ===============
   MEDIA QUERIES
   ===============
*/

/* Telas menores que 768px (tablets e celulares médios) */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        /* Para não forçar altura fixa no mobile */
        min-height: auto;
    }

    /* Mantemos a left-section branca no topo */
    .left-section {
        background-color: #ffffff;
        width: 100%;
        height: auto;
    }

    .right-section {
        width: 100%;
        padding: 20px;
    }

    .right-section h2 {
        font-size: 28px;
    }

    .login-button {
        width: 50%;
    }

    .contact-info {
        position: static;
        margin-top: 20px;
        transform: none;
        left: auto;
        bottom: auto;
    }
}

/* Telas menores que 480px (celulares pequenos) */
@media (max-width: 480px) {
    .right-section h2 {
       font-size: 24px;
    }

    .form-group label {
       font-size: 16px;
    }

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