/* CSS */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 380px;
    margin: 20px;
    transition: all 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Estilos para los mensajes de alerta */
.alert {
    padding: 12px 15px;
    margin: 0 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 10px;
    transition: opacity 0.5s ease;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffeeba;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #c3e6cb;
}

.login-header {
    background-color: #0057A5;
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.login-header img {
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.login-header h2 {
    margin: 0;
    font-size: 24px;
}

.login-form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #0057A5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 87, 165, 0.1);
}

.login-button {
    background-color: #4AAE00;
    color: white;
    border: none;
    padding: 13px;
    width: 100%;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #3a8c00;
}

.login-button:active {
    transform: translateY(1px);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.forgot-password a {
    color: #0057A5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #003c73;
    text-decoration: underline;
}

/* Estilos para el mostrar/ocultar contraseña */
.password-group {
    position: relative;
}

.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.eye-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.eye-icon.hide {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E");
}

@media (max-width: 400px) {
    .login-container {
        margin: 10px;
        border-radius: 4px;
    }

    .login-button {
        font-size: 14px;
        padding: 10px;
    }

    .login-header h2 {
        font-size: 20px;
    }
}

/* Nuevos estilos para la información del usuario en el header */
.info-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 10px;
}

.user-email {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.type-user {
    font-size: 12px;
    color: #666;
    text-transform: capitalize;
}

/* Animación para los mensajes de alerta */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: fadeInDown 0.5s ease forwards;
}