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

body{
    height:100vh;
    font-family:Arial, sans-serif;
    background-image: url("fundo.png");
    background-size: 100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.container{
    width:900px;
    height:550px;
    background:#fff;
    display:flex;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,0.25);
}

/* LEFT */

.left{
    position:relative;
    background-color: #5AAAFD;
    width:50%;
}

.left img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:opacity .4s;
}

.left img.fade-out{ opacity:0; }

.left::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:60%;
    background:linear-gradient(
        to top,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0)
    );
}


.overlay{
    position:absolute;
    bottom:40px;
    left:40px;
    right:40px;
    color:#fff;
    z-index:2;
}

/* RIGHT */

.right{
    width:50%;
    display:flex;
    flex-direction:column;
}

/* ABAS */

.top-tabs{
    position:relative;
    height:60px;
}

.area{
    position:absolute;
    top:6px;
    width:33.33%;
    height:48px;
    border:none;
    border-radius:12px;
    background:transparent;
    font-weight:600;
    color:#6b6b6b;
    cursor:pointer;
    transition:all .45s cubic-bezier(.25,.8,.25,1);
}

.area.pos-left{ left:0; }
.area.pos-center{ left:33.33%; transform:scale(1.12); z-index:2; }
.area.pos-right{ left:66.66%; }

.area.active{
    background:#fff;
    color:#5AAAFD;
    box-shadow:0 10px 25px rgba(90,170,253,.35);
}

/* TEXTO LOGIN */

.login-info{
    width:80%;
    margin: 50px auto 30px; /* antes estava 15px */
    text-align:center;
}

.login-info h2{
    font-size:26px;
    margin-bottom:8px;
}

.login-info p{
    font-size:14px;
    color:#666;
}

/* FORM */

.right form{
    width:70%;
    margin:0 auto;
    display:flex;
    flex-direction:column;
}

.right input{
    padding:13px;
    margin-bottom:10px;
    border-radius:10px;
    border:1px solid #ccc;
}

/* OPÇÕES */

.login-options{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    margin-bottom:18px;
}

.forgot{
    color:#5AAAFD;
    text-decoration:none;
}

/* BOTÃO */

.btn-login{
    padding:14px;
    border:none;
    border-radius:10px;
    background:#5AAAFD;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.btn-login:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 15px rgba(0,168,204,.4);
}

/* FADE TEXTO */

.fade-text{
    transition:opacity .35s, transform .35s;
}

.fade-out-text{
    opacity:0;
    transform:translateY(10px);
}

/*OPERAÇÂO*/

.dashboard{
    padding:40px;
}

.topo{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.cards{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap:20px;
}

.card{
    background:#fff;
    padding:20px;
    border-radius:12px;
    text-decoration:none;
    color:#333;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    transition:0.2s;
}
.card:hover{
    transform:scale(1.05);
}

@media (max-width: 900px) {
    body {
        padding: 16px;
    }

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

    .left,
    .right {
        width: 100%;
    }

    .left {
        min-height: 240px;
        max-height: 280px;
        position: relative;
    }

    .left img,
    #imagem-setor {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .overlay {
        padding: 18px 16px;
    }

    .overlay h2,
    #titulo-setor {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .overlay p,
    #descricao-setor {
        font-size: 13px;
        line-height: 1.45;
    }

    .right {
        padding: 18px 16px 20px;
    }

    .top-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 18px;
    }

    .area {
        width: 100%;
        min-height: 42px;
        padding: 10px 8px;
        font-size: 11px;
        border-radius: 10px;
        position: static !important;
        transform: none !important;
    }

    .login-info {
        margin-bottom: 18px;
    }

    .login-info h2,
    #titulo-login {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .login-info p,
    #texto-login {
        font-size: 13px;
        line-height: 1.5;
    }

    form {
        width: 100%;
    }

    form input[type="text"],
    form input[type="password"] {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .login-options {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 8px 0 16px;
    }

    .login-options label,
    .forgot {
        font-size: 13px;
    }

    .btn-login {
        width: 100%;
        min-height: 46px;
        border-radius: 10px;
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
        border-radius: 16px;
    }

    .left {
        min-height: 210px;
        max-height: 230px;
    }

    .overlay {
        padding: 14px;
    }

    .overlay h2,
    #titulo-setor {
        font-size: 20px;
    }

    .overlay p,
    #descricao-setor {
        font-size: 12px;
    }

    .right {
        padding: 14px;
    }

    .top-tabs {
        gap: 6px;
    }

    .area {
        min-height: 40px;
        font-size: 10px;
        padding: 8px 6px;
    }

    .login-info h2,
    #titulo-login {
        font-size: 21px;
    }

    .login-info p,
    #texto-login {
        font-size: 12px;
    }
}