/* login.css */

:root {
    --background-color: #F9F9F9;
    --foreground-color: #151320;

    --card-color: #FFFFFF;

    --primary-color: #7430E8;
    --primary-foreground-color: #FFFFFF;

    --secondary-color: #eeedf2;
    --secondary-foreground-color: #201D30;

    --accent-color: #2EB8A5;

    --muted-foreground-color: #6B677E;

    --border-color: #e3e2e9;
}

/* =======================
   RESET
======================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;

    background:
    linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );

    overflow:hidden;
}

/* =======================
   CONTAINER
======================= */

.container{
    width:950px;
    height:550px;

    background:var(--card-color);

    display:flex;

    border-radius:18px;

    overflow:hidden;

    border:1px solid var(--border-color);

    box-shadow:
    0 20px 50px rgba(0,0,0,0.12);
}

/* =======================
   LADO ESQUERDO
======================= */

.left-panel{
    width:50%;

    background:
    linear-gradient(
        180deg,
        var(--primary-color),
        #5d22c0
    );

    color:var(--primary-foreground-color);

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    padding:40px;

    text-align:center;

    position:relative;
}

.left-panel::before{
    content:"";

    position:absolute;

    width:300px;
    height:300px;

    background:rgba(255,255,255,0.08);

    border-radius:50%;

    top:-80px;
    left:-80px;
}

.left-panel::after{
    content:"";

    position:absolute;

    width:220px;
    height:220px;

    background:rgba(255,255,255,0.05);

    border-radius:50%;

    bottom:-70px;
    right:-70px;
}

.left-panel img{
    width:320px;
    z-index:2;
}

.left-text{
    z-index:2;
}

.left-text h1{
    font-size:38px;
    margin-top:15px;
    margin-bottom:10px;
}

.left-text p{
    font-size:15px;
    opacity:0.9;
    line-height:1.6;
}

/* =======================
   LADO DIREITO
======================= */

.right-panel{
    width:50%;

    background:var(--card-color);

    position:relative;

    display:flex;
    justify-content:center;
    align-items:center;
}

.form-box{
    width:100%;

    padding:50px;

    position:absolute;

    opacity:0;

    transform:translateX(40px);

    transition:0.4s ease;

    pointer-events:none;
}

.form-box.active{
    opacity:1;

    transform:translateX(0);

    pointer-events:all;
}

.form-box h2{
    text-align:center;

    margin-bottom:30px;

    color:var(--foreground-color);

    font-size:32px;

    font-weight:700;
}

/* =======================
   INPUTS
======================= */

.input-group{
    margin-bottom:18px;
}

.input-group label{
    display:block;

    margin-bottom:7px;

    font-size:14px;

    color:var(--muted-foreground-color);

    font-weight:500;
}

.input-group input{
    width:100%;

    padding:14px;

    border-radius:10px;

    border:2px solid transparent;

    background:var(--secondary-color);

    color:var(--foreground-color);

    outline:none;

    transition:0.3s;
}

.input-group input:focus{
    border-color:var(--primary-color);

    background:var(--card-color);

    box-shadow:
    0 0 0 4px rgba(116,48,232,0.12);
}

/* =======================
   OPÇÕES
======================= */

.options{
    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:22px;

    font-size:13px;
}

.options label{
    color:var(--muted-foreground-color);
}

.options a{
    color:var(--primary-color);

    text-decoration:none;

    font-weight:600;
}

/* =======================
   BOTÃO
======================= */

.btn{
    width:100%;

    padding:14px;

    border:none;

    border-radius:12px;

    background:var(--primary-color);

    color:var(--primary-foreground-color);

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

.btn:hover{
    transform:translateY(-2px);

    background:#6324d3;

    box-shadow:
    0 12px 25px rgba(116,48,232,0.25);
}

/* =======================
   TROCAR LOGIN
======================= */

.switch-text{
    text-align:center;

    margin-top:22px;

    color:var(--muted-foreground-color);

    font-size:14px;
}

.switch-text span{
    color:var(--accent-color);

    font-weight:700;

    cursor:pointer;
}

/* =======================
   RESPONSIVO
======================= */

@media(max-width:900px){

    body{
        padding:20px;
    }

    .container{
        width:100%;
        height:auto;

        flex-direction:column;
    }

    .left-panel{
        width:100%;
        padding:30px;
    }

    .right-panel{
        width:100%;

        min-height:550px;
    }

    .left-panel img{
        width:220px;
    }

    .left-text h1{
        font-size:28px;
    }
}