/* Estilos generales */
body {
    margin: 0;
}

h1 {
    text-align: center;
    font-family: 'Poppins', serif;
    font-size: 8vh;
    font-weight: 200;
    margin: 0;
}

.fondo {
    height: 100vh;
    width: 100%;
    background: linear-gradient(to left, #000000, #1a1a1a, #264b1c);
    animation: color 10s ease-in-out infinite;
}

@keyframes color {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.login {
    margin: 0 30%;
    box-shadow: 0px 0px 0.5vh rgba(0, 0, 0, 0.5); /* Sombreado sutil */
    position: absolute;
    bottom: 15vh;
    display: flex;
    flex-direction: row; /* Alineación en fila */
    width: 85vh;
    height: auto;
    background-color: rgb(255, 255, 255);
    border-radius: 1vh;
    overflow: hidden; /* Para ocultar cualquier desbordamiento */
}

.image-container {
    position: relative;
    width: 50%;
    height: 70vh;
}

img {
    filter: blur(0.8px);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1vh 0 0 1vh;
}

.overlay-text {
    font-family: 'Josefin Slab', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0.5vh 0.5vh 0.8vh rgba(0, 0, 0, 0.7); /* Sombra más visible */
}

.overlay-text h2 {
    font-size: 7vh;
    margin: 0;
    font-weight: 600;
}

.overlay-text p {
    font-size: 2vh;
    margin-top: 1vh;
}

.form {
    padding: 10vh 2vh;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input {
    width: 90%;
    margin-top: 2vh; /* Reducido margen superior para evitar desbordamiento */
    background-color: rgba(0, 0, 0, 0);
    border: solid 0.2vh #9a9a9a;
    border-radius: 0.5vh;
    padding: 1vh;
}

.button {
    margin: 5vh 0;
    padding: 1vh 2vh;
    width: 90%; /* Ajustado para que no se desborde */
    border-radius: 0.5vh;
    background-color: rgba(0, 0, 0, 0);
    border-color: #9a9a9a;
    border: solid 0.6px;
    transition: 0.3s ease-in-out;
}

.button:hover {
    background-color: #264b1c;
    color: white;
    transition: 0.3s ease-in;
}

.a2 {
    color: #333;
    text-decoration: none;
}

.me {
    font-family: 'Poppins';
    font-size: 2vh;
    color: rgba(255, 255, 255, 0.888);
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
}

/* Media Queries para Responsividad */
@media only screen and (max-width: 768px) {
    .login {
        margin: 0 5%;
        width: 90%;
        bottom: 20vh;
        flex-direction: column; /* Cambia a columna en pantallas pequeñas */
    }

    .image-container {
        width: 100%;
        height: 40vh; /* Ajustado para mostrar solo el texto */
    }

    .overlay-text h2 {
        font-size: 5vh;
    }

    .overlay-text p {
        font-size: 1.5vh;
    }

    .form {
        width: 100%;
        padding: 5vh 2vh;
    }

    input {
        width: 100%;
        margin-top: 2vh; /* Reducido margen superior */
    }

    .button {
        width: 100%;
        margin: 2vh 0;
    }

    a {
        bottom: 2vh;
        left: 50%;
        transform: translateX(-50%);
    }

    .me {
        bottom: 2vh;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media only screen and (max-width: 480px) {
    h1 {
        font-size: 6vh;
    }

    .overlay-text h2 {
        font-size: 4vh;
    }

    .overlay-text p {
        font-size: 1.2vh;
    }

    .image-container {
        height: 20vh; /* Ajustado para mostrar solo el texto con margen de 20px */
    }

    .form {
        padding: 1vh 0.5vh;
    }

    input {
        margin-top: 0.5vh;
    }

    .button {
        padding: 1vh 1.5vh;
    }

    .me {
        bottom: 2vh;
        left: 50%;
        transform: translateX(-50%);
    }
}
