*{

margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;

}



body{

height:100vh;

background:#11131a;

}



.container{

display:flex;

height:100vh;

}



.login-area{


width:45%;

background:#151820;

color:white;

display:flex;

align-items:center;

justify-content:center;


}



.login-content{

width:60%;

}



h1{

font-size:40px;

}



p{

color:#aaa;

margin:15px 0 40px;

}



input{


width:100%;

background:none;

border:none;

border-bottom:2px solid #555;

padding:15px 0;

color:white;

outline:none;

margin-bottom:25px;

}



.password{

position:relative;

}


.password span{

position:absolute;

right:5px;

top:15px;

cursor:pointer;

}



a{

color:#aaa;

}



button{


width:100%;

height:50px;

margin-top:40px;

border:none;

border-radius:10px;

background:#9757f5;

color:white;

cursor:pointer;

}



.signup{

margin-top:170px;

display:flex;

gap:30px;

align-items:center;

}


.signup button{

width:100px;

margin:0;

background:#333;


}



/* lado direito */


.welcome{

width:55%;

background:#9258f5;

padding:70px;

color:white;

overflow:hidden;

}



.welcome h2{

font-size:65px;

line-height:1;

}



.welcome span{

font-weight:300;

}



.portal-img{

width:80%;

margin-top:40px;

}

.mensagem-login{
    display:none;
    margin-top:15px;
    padding:12px 15px;
    border-radius:12px;
    font-size:14px;
    font-weight:500;
    text-align:center;
    animation: aparecer .3s ease;
}

.mensagem-login.erro{
    background:#ffe5e5;
    color:#c62828;
    border:1px solid #ef5350;
}

.mensagem-login.sucesso{
    background:#e8f5e9;
    color:#2e7d32;
    border:1px solid #66bb6a;
}

@keyframes aparecer{
    from{
        opacity:0;
        transform:translateY(-8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}


@media (max-width: 768px) {

    body {
        padding: 15px;
    }

    .container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        border-radius: 20px;
        overflow: hidden;
    }

    .login-area,
    .welcome {
        width: 100%;
        padding: 30px 20px;
    }

    .welcome {
        order: -1;
        text-align: center;
    }

    .welcome h2 {
        font-size: 2rem;
    }

    .welcome p {
        font-size: 14px;
    }

    .portal-img {
        width: 80%;
        max-width: 250px;
        margin-top: 20px;
    }

    .login-content {
        width: 100%;
    }

    .login-content h1 {
        font-size: 2rem;
        text-align: center;
    }

    .login-content p {
        text-align: center;
    }

    .login-content input {
        width: 100%;
        font-size: 16px;
    }

    .password {
        width: 100%;
    }

    .password input {
        width: 100%;
    }

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

    .signup {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}


@media (max-width: 480px) {

    .welcome h2 {
        font-size: 1.7rem;
    }

    .login-content h1 {
        font-size: 1.8rem;
    }

    .portal-img {
        width: 90%;
        max-width: 200px;
    }

}