/* Updated on: 17 Sep 2025
    Author: Gemini
*/

/* General styling for a responsive layout */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('/faces/javax.faces.resource/imagenes/msvm_general.jfif') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow: hidden; 
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px);
    z-index: -1;
}

.ui-password{
    width: 100% !important;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-panel {
    max-width: 400px;
    padding: 40px; /* Aumenta el padding para más espacio */
    background: rgba(255, 255, 255, 0.2); /* Fondo semi-transparente */
    border-radius: 15px; /* Bordes más redondeados */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Borde sutil */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Sombra más pronunciada */
    backdrop-filter: blur(10px); /* Efecto Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    transform-style: preserve-3d; /* Para el efecto 3D */
    transition: transform 0.3s ease-in-out; /* Transición para la animación */
}

.login-panel:hover {
    transform: perspective(1000px) rotateY(5deg); /* Efecto 3D en hover */
}

.ui-panel-title {
    font-size: 2em; /* Título más grande */
    font-weight: 600;
    color: #fff; /* Color de texto blanco para contraste */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para el título */
}

.ui-panel-titlebar {
    background: none !important; /* Eliminar fondo del título si lo tiene */
    border: none !important; /* Eliminar borde del título */
}

.login-input {
    width: 100%;
}

.login-input .ui-inputfield {
    width: 100% !important;
    padding: 12px 15px; /* Aumenta el padding para mejor tacto */
    margin-bottom: 15px; /* Más espacio entre campos */
    border: none;
    border-bottom: 2px solid #ccc; /* Borde inferior para un diseño más limpio */
    background: transparent; /* Fondo transparente */
    color: #fff; /* Texto blanco */
    font-size: 16px;
    transition: border-bottom-color 0.3s ease;
}

.login-input .ui-inputfield:focus {
    outline: none;
    border-bottom-color: #007bff; /* Resaltar con color primario al enfocar */
}

/* Cambiar el color del placeholder */
.login-input input::placeholder {
    color: #eee;
}

.login-button {
    width: 100%;
    background-image: linear-gradient(to right, #007bff, #0056b3); /* Gradiente para el botón */
    border: none;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 25px; /* Bordes más redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    background-image: linear-gradient(to right, #0056b3, #004085); /* Cambia el gradiente en hover */
    transform: translateY(-2px); /* Efecto de "elevación" */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.login-grid {
    margin: 0 auto;
    width: 100%;
}