*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    height:100vh;
    
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
}

/* Cortina blanca */
body::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(255,255,255,0.4);
    backdrop-filter:blur(1px);
}

/* Carrusel centrado más grande */
.carousel-container{
    position:relative;
    z-index:2;
    width:45vw;
    max-width:850px;
    min-width:300px;
    display:flex;
    justify-content:center;
    align-items:center;
    perspective:1200px; /* efecto 3D */
}

/* Cuadrado perfecto */
.carousel{
    position:relative;
    width:100%;
    aspect-ratio:1 / 1;
    border-radius:30px;
    overflow:hidden;
    box-shadow:
        0 40px 100px rgba(0,0,0,0.35),
        0 0 60px rgba(0,123,255,0.25);
    transform-style:preserve-3d;
    animation:float 6s ease-in-out infinite;
}

/* Animación flotante */
@keyframes float{
    0%,100%{ transform:translateY(0px) rotateX(0deg); }
    50%{ transform:translateY(-15px) rotateX(3deg); }
}

.carousel img{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1.2s ease, filter 1s ease, transform 1s ease;
}

/* Brillo dinámico */
.carousel::after{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:200%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent 40%,
        rgba(255,255,255,0.4) 50%,
        transparent 60%
    );
    animation:shine 5s infinite;
}

@keyframes shine{
    0%{ left:-100%; }
    100%{ left:100%; }
}

/* Barra login inferior */
.login-bar{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    padding:15px 30px;
    background:rgba(255, 255, 255, 0.11);
    backdrop-filter:blur(15px);
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    box-shadow:0 -5px 25px rgba(0,0,0,0.15);
    z-index:3;
}

/* Grupo con label flotante */
.input-group {
    position: relative;
    display: inline-block;
}

.input-group input {
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    min-width: 200px;
    background: white;
    transition: 0.3s;
}

/* Label encima del input */
.input-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: #666;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s ease;
}

/* Cuando el input está enfocado o tiene texto */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007BFF;
    background: white;
    padding: 0 5px;
    border-radius: 5px;
}

.login-bar input[type=submit]{
    padding:12px 25px;
    border:none;
    border-radius:10px;
    background:linear-gradient(135deg,#e24a4a,#ff0000);
    color:white;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.login-bar input[type=submit]:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media(max-width:768px){
    .carousel{
        height:300px;
    }
    .login-bar{
        flex-direction:column;
        gap:10px;
    }
    .login-bar input{
        width:100%;
    }
}
@media (min-width:1600px){
    .carousel-container{
        width:35vw;
        max-width:1000px;
    }
}