
:root{
    --bg : #0B1548;
    --cor-texto: #fffffff;
    --cor-container: #ffffff;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    height: 100vh;
    width: 100vw;
    color: var(--bg);
    overflow-y: hidden;
    background-color: var(--cor-container);
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--bg);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#menu-icon{
    cursor: pointer;
    font-size: 40px;
    margin-left: -1vw;
}

.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: -250px;
    background-color: var(--bg);
    padding-top: 60px;
    transition: 0.3s;
}

.sidebar img{
    width: 150px;
    margin-bottom: 2vw;
}

.sidebar button, .exit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    color: var(--cor-container);
    transition: 0.3s;
    border-radius: 0px;
    margin-bottom: 1vw;
}

.exit-btn{
    position: absolute;
    bottom: 1vw;
}

.sidebar button:hover {
    background-color: var(--cor-container);
    color: var(--bg);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2vw;
    color: var(--cor-container);
    cursor: pointer;
}

.logo{
    width: 20vw;
    margin-bottom: 3vw;
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center ;
    position: absolute;
    z-index: 1;
    background-color: var(--bg);
    width: 100vw;
    height: 100vh;
}

form{
    margin-top: 2vw;
    color: var(--bg);
    padding: 0.5vw;
    background-color: var(--cor-container);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.4vw;
    border-radius: 4px;
    width: 25vw;
    height: 30vw;
}

input{
    outline: none;
    height: 1.5vw;
    width: 100%;
    color: var(--cor-texto);
}

.campos{
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    width: 90%;
}

label{
    font-weight: bold;
}

button{
    margin-top: 1vw;
    color: var(--cor-container);
    border: none;
    background-color: var(--bg);
    height: 2vw;
    padding: 1vw;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    border-radius: 3px;
    margin-bottom: 1vw;
    cursor: pointer;
}

.message{
    color: red;
    font-weight: bold;
    height: 3vw;

}


.msg{
    display: flex;
    justify-content: space-between;
    width: 100vw;
    height: 2.5vw;
    padding: 0vw 2vw;
    align-items: center;

}

.msg img{
    width: 8vw;
}


.screen-logged{
    height: 100vh;
    width: 100vw;
    position: fixed;
    display: block;
    flex-direction: column;
    justify-content: center;
    text-align: center;

}


iframe{
    height: 102vh;
    width: 100vw;
    border: none;
    
}


.desapear{
    display: none;
}

#logged-message{
    text-transform: capitalize;
    display: flex;
    font-size: 1vw;
    justify-content: center;
}

#frame2{
    display: none;
}

/* ---------------------------------------------------- */

@media (max-width: 768px) {


    .form{
        justify-content: space-around;
        height: 100vh;
        width: 100vw;
        border: none;
        margin: 0;
    }


    .form img{
        width: 50vw;
        margin-top: 30vw;
    }

    #menu-icon{
       font-size: 10vw;

    }
    
    .form button{
        margin-top: 3vw;
        padding: 3vw;
        height: 10vw;
        width: 70vw;
    }

    .sidebar img{
        width: 220px;
        margin-bottom: 2vw;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 10vw;
    }

    label{
        font-weight: bold;
        font-size: 8vw;
        margin: 2vw 0vw;
    }

    input{
        outline: none;
        height: 8vw;
        width: 100%;
        color: var(--cor-texto);
    } 
    
    button{
        border: none;
        height: 10vw;
        width: 40%;
        border-radius: 3px;
    }

    iframe{
        height: 105vh;
        width: 100vw;
        border: none; 
    }

    .msg{
        display: flex;
        justify-content: space-between;
        width: 100vw;
        height: 10vw;
        padding: 0vw 2vw;
    }


    #logged-message{
        text-transform: capitalize;
        display: flex;
        font-size: 5vw;
        text-align: center;
    }

    .msg img{
        width: 30vw;
    }

    .message{
        margin-bottom: 50vw;
    }
    
}
