/* Estilos generales para la página de login */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f3f3f3;
    margin: 0;
    padding: 0;
}

/* Estilos para la página de login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Estilo del logo */
.logo img {
    height: 100px;
    width: auto;
}

.login-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: #3f8cf1;
    box-shadow: 0 0 10px rgba(63, 140, 241, 0.2);
}

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

.password-container input {
    padding-right: 40px; /* Añadir espacio para el ícono */
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-87%); /* Centrado vertical */
    cursor: pointer;
    color: #333; /* Color más visible */
    font-size: 24px; /* Tamaño ligeramente mayor */
}

/* Estilo para el icono de ojo cerrado (modo password) */
.toggle-password img {
    width: 21px;
    height: 15px;
    transition: transform 0.3s ease;
}

/* Estilo para cambiar el ojo cuando está abierto (modo texto) */
.toggle-password.opened img {
    transform: rotate(180deg); /* Rotar el ícono cuando está abierto */
}

/* Botón de login */
.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #3f8cf1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #3678c6;
}

/* Estilo para mostrar el mensaje de error */
.error-msg {
    color: red;
    font-size: 14px;
    margin-top: -12px;
    margin-bottom: 12px;
    text-align: center;
}

/* Animación para el formulario en caso de error */
.error-vibrar {
    animation: vibrar 0.3s;
}

@keyframes vibrar {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}