*, *:before, *:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-image: url('2151307754.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; /* Asegura que la imagen esté centrada */
    margin: 0;
    height: 100vh; /* Ajusta la altura del body al 100% del viewport height */
    display: flex; /* Usa flexbox para centrar el contenido verticalmente */
    align-items: center;
    justify-content: center;
}

.background {
    width: 430px;
    height: 520px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

form {
    min-height: 520px;
    width: 400px;
    background-color: rgba(255, 255, 255, 0.13);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    padding: 50px 35px;
    overflow: hidden;
}

form * {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
    color: black;
}

form h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
}

label {
    display: block;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
}

input {
    display: block;
    height: 50px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 0 10px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 300;
    color: black;
    border: 1px solid #ccc;
}

input::placeholder {
    color: black;
}

button {
    margin-top: 50px;
    width: 100%;
    background-color: #ffffff;
    color: #080710;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}

form div {
    margin-top: 15px;
    color: black;
    margin-left: auto;
}

#forgotLink,
#manualLink {
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

#forgotLink:hover,
#manualLink:hover {
    color: #0070cc;
    text-decoration: underline;
}

.error-message {
    color: red;
    margin-top: 5px;
    font-size: 12px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button-container button {
    width: 48%;
}

#loginForm.hidden {
    visibility: hidden;
}

button:hover {
    background-color: #87CEEB;
    color: #ffffff;
    border: 1px solid #0070cc;
}

.error-messageR {
    font-size: 25px;
    color: red;
}

/* Resto de estilos */

#icono-maquina,
#icono-kp {
    position: fixed;
    mix-blend-mode: normal;
}

#icono-maquina {
    top: 10px;
    right: 10px;
    width: 100px;
    height: auto;
}

#icono-kp {
    top: -45px;
    left: 5px;
    width: 200px;
    height: auto;
}

#info-saeco {
    position: fixed;
    top: 41px;
    right: 120px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
}
.password-container {
    position: relative;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 25%; 
    transform: translateY(-50%);
    right: 10px; 
    cursor: pointer;
}
/* Estilos responsivos */
@media only screen and (max-width: 600px) {
    .background {
        width: 100%;
        height: auto;
        position: relative;
        transform: translate(0, 0);
        left: 0;
        top: 0;
    }

    form {
        min-height: auto;
        width: 100%;
        padding: 20px;
    }

    #icono-maquina {
        width: 50%;
        max-width: 100px;
        height: auto;
    }

    #icono-kp {
        top: -80px;
        width: 30%;
        max-width: 80px;
        height: auto;
    }

    #info-saeco {
        top: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* Estilos adicionales para dispositivos específicos */
@media only screen and (max-width: 480px) {
    #icono-maquina {
        top: 5px;
        right: 5px;
        width: 80px;
    }

    #icono-kp {
        top: -60px;
        width: 30%;
        max-width: 60px;
    }

    #info-saeco {
        top: 15px;
        right: 15px;
        font-size: 14px;
    }
}
