*{margin:0;padding:0;box-sizing:border-box}

body{
    font-family:'Segoe UI',sans-serif;
    overflow:hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero img{
    animation: floatLogo 3s ease-in-out infinite;
    will-change: transform;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* CONTAINER */
.login-container{
    display:flex;
    height:100vh;
}

.titulo {
    font-size: 14px;
}
.text {
    font-size: 14px;
}

/* LEFT */
.overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(30,58,138,0.7);
    backdrop-filter: blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
}
.login-left{
    flex:1;
    background:url('assets/fundo.jpg') center/cover no-repeat;
    position:relative;
}

.overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    
    background:rgba(30,58,138,0.7); /* camada azul */
    backdrop-filter: blur(6px); /* opcional: efeito moderno */  
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero{
    text-align:center;
    color:white;
}

.hero img{
    width:90px;
    height:90px;
    border-radius:20px;
    margin-bottom:15px;
    animation: floatLogo 3s ease-in-out infinite;
}

.hero h1{
    font-size:48px;
    font-weight:700;
}

.hero p{
    margin-top:14px;
    font-size: 20px;
    opacity:0.9;
}

/* FEATURES */
.features-box{
    margin-top:30px;
    padding:30px 70px;
    background:rgba(255,255,255,0.1);
    border-radius:15px;
    backdrop-filter: blur(10px);
    display:inline-block;
}

.feature{
    display:flex;
    align-items:center;
    gap:10px;
    margin:8px 0;
    font-size: 17px;
}

.dot{
    width:8px;
    height:8px;
    background:#facc15;
    border-radius:50%;
}

/* RIGHT */
.login-right{
    flex:1;
    background:linear-gradient(135deg,#020617,#0f172a);
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-box{
    width:100%;
    max-width:400px;
    background:#1e293b;
    padding:40px;
    border-radius:20px;
    color:white;
    box-shadow:0 20px 50px rgba(0,0,0,0.6);
}

.login-box h2{
    font-size:30px;
    font-weight:600;
    color:#e5edf7;
    margin-bottom:4px;
    line-height:1.2;
}

.login-box p{
    font-size:16px;
    color:#94a3b8;
    margin-bottom:24px;
}

/* INPUT */
.input-group{
    position:relative;
    margin-bottom:15px;
}

.input-group input{
    width:100%;
    padding:14px 40px;
    background:#0f172a;
    border:1px solid #334155;
    border-radius:12px;
    color:white;
    transition:0.3s;
}

.input-group input:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 2px rgba(59,130,246,0.2);
    outline:none;
}

.input-group i{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
}

/* ícone da esquerda (cadeado / user) */
.input-group i:first-child{
    left:15px;
}

/* ícone do olho */
.toggle{
    right:15px;
    left:auto;
    cursor:pointer;
}
/* BUTTON */
.btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:white;
    font-weight:bold;
    margin-top:10px;
    cursor:pointer;
    transition:0.3s;
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(59,130,246,0.4);
}

/* ERROR */
.error{
    background:#7f1d1d;
    padding:10px;
    border-radius:10px;
    margin-bottom:10px;
    text-align:center;
}

/* FOOTER */
.footer{
    text-align:center;
    margin-top:20px;
    font-size:12px;
    color:#94a3b8;
}

/* MOBILE */
@media(max-width:768px){
    .login-left{display:none;}
}

/* ANIMAÇÃO */
@keyframes floatLogo {
    from {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}
