body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.login-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.login-form {
    position: relative;
    z-index: 2;
}

.logo {
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
    width: 50%; /* Ajusta el tamaño del logo */
}

label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #666;
}

.toggle-password:hover {
    color: #333;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #ff7f00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

button[type="submit"]:hover {
    background-color: #e66b00;
}

/* Media Queries para dispositivos móviles */
@media screen and (max-width: 480px) {
    .login-box {
        padding: 15px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    }

    .logo {
        width: 70%; /* Ajusta el tamaño del logo en pantallas más pequeñas */
    }

    input[type="email"],
    input[type="password"],
    button[type="submit"] {
        padding: 12px;
        font-size: 1em;
    }
}
