:root {
    /* Cores principais */
    --cor-primaria: #000000;
    --cor-secundaria: #000000;

    /* Cores Botoes */
    --cor-botao: #000000;
    --cor-hover: #000000;
    --cor-active: #000000;
}

/* Resetando alguns estilos padrão do navegador */
* {
    margin: 0;
    padding: 0;
}

main {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    display: flex;
}

.box-imagemloja {
    height: 100vh;
    color: #0000;
}

#imagemEmpresa {
    width: 100%;
    height: 99.6vh;
    object-fit: cover;
    background-color: #0000;
}

.container-login {
    min-width: 600px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--cor-secundaria);
    background: linear-gradient(20deg, var(--cor-secundaria) 49%, rgba(244,247,246,1) 49%);
}

/* Caixa de login */
#box {
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.24);
    width: 450px;
    padding: 20px;
    text-align: center;
    align-content: center;
    border-top: 5px solid var(--cor-primaria);
}

/* Logo */
.logo {
    max-width: 300px;
    max-height: 100px;
    margin-bottom: 20px;
}

/* Título do login */
#box h1 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
}

.subname {
    margin-bottom: 10px;
}

/* Campos de input */
input[type="text"],
input[type="password"] {
    width: 90%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 17px;
    color: #333;
    background-color: #fcfafa;
}

/* Foco nos campos de input */
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
}

/* Estilo para o botão de login */
input[type="submit"] {
    background-color: var(--cor-primaria);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bolder;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 96.5%;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Hover no botão de login */
input[type="submit"]:hover {
    background-color: var(--cor-hover);
}

a:hover {
    text-decoration: underline;
}

/* MODAL ERRO LOGIN */
.box-modalalerta {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center; /* Alinha horizontalmente no centro */
    align-items: center;     /* Alinha verticalmente no centro */
}

.content-alerta {
    position: relative;
    transform: translateY(-50%);
    margin: 0 auto;
    text-align: center;
    top: 50%;
    width: 30vw;
    height: auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    border-top: 5px solid var(--cor-primaria);
}

.modal-titulo {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-msg {
    font-size: 1rem;
    margin-bottom: 30px;
}

#fechar-modal-alerta {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    margin-bottom: 10px;
}

#fechar-modal-alerta:hover {
    background-color: #d32f2f;
}

/* Barra de progresso */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    margin-top: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--cor-primaria);
    transition: width 2s linear;
}


/* Ajustes para telas menores */
@media (max-width: 1050px) {

    html, body {
        height: 100vh;
        overflow: hidden;
        margin: 0; 
        padding: 0;
    }

    main {
        display: inline;
    }

    .box-imagemloja {
        display: none;
    }

    #imagem-loja {
        display: none;
    }

    .container-login {
        min-width: 100vw;

    }

    #box {
        padding: 35px;
        width: 60vw;
        max-width: 400px;
        border-top: 4px solid var(--cor-primaria);
    }

    #box h1 {
        display: none;
    }

    .subname {
        margin-bottom: 5px;
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="password"] {
    width: 80%;
    padding: 9px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    }

    /* Logo */
    .logo {
        max-width: 600px;
        max-height: 70px;
        margin-bottom: 5px;
    }

    input[type="submit"] {
        margin-bottom: 1px;
        width: 89%;
        padding: 15px 0px 15px 0px;
    }

    .content-alerta {
        width: 60vw;
    }
}

/* Ajustes para telas menores */
@media (max-width: 660px) {
    /* Logo */
    .logo {
        max-width: 50vw;
        max-height: 70px;
    }
}
