/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {

    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f2f2f2;
    line-height: 0; /* <-- Esto ayuda a evitar espacio vertical invisible */
}


/* Contenedor principal que divide la pantalla */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Imagen a la izquierda (80%) en escritorio */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.image-section {
    width: 80%;
    height: 100vh;
    background-image: url('../imagen/LOGO LUCIERNAGA 2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}



/* Login a la derecha (20%) */
.login-container {
    width: 20%;
    background-color: #ffffff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    border-left: 2px solid #ddd;
    height: 100vh;
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    letter-spacing: 1px;
}

/* Formulario centrado */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    gap: 10px;
}

label {
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border 0.3s ease;
}

input:focus {
    border-color: #007bff;
    outline: none;
}

button {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* ========== RESPONSIVE PARA MÓVILES ========== */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }

    .main-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-image: url('../imagen/LOGO\ LUCIERNAGA\ 2.png');
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .main-container::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom right, rgba(255,255,255,0.4), rgba(255,255,255,0.6));
        z-index: 1;
    }

    .image-section {
        display: none;
    }

    .login-container {
        position: relative;
        z-index: 2;
        width: 90%;
        margin-top: 40px;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(10px);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        padding: 30px 20px;
        animation: fadeIn 0.8s ease-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
