/* C:\xampp\htdocs\PROYECTO\Proyecto\AppFinal\public\assets\css\login.css */

/* =========================================
   ESTILOS DE LOGIN (DISEÑO PREMIUM)
   ========================================= */

body.login-page {
    /* Configuración de imagen de fondo */
    /* La ruta sube un nivel (..) desde css y entra a img */
    background: url('../img/fondo.png') no-repeat center center fixed;
    background-size: cover; /* Escala la imagen para cubrir toda la pantalla */
    
    /* Color de respaldo por si la imagen no carga */
    background-color: #f1f5f9;

    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.login-card {
    /* Fondo blanco con transparencia (90%) */
    background: rgba(255, 255, 255, 0.9);
    
    /* Efecto de desenfoque detrás de la tarjeta (Glassmorphism) */
    backdrop-filter: blur(10px);
    
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a; 
    margin: 0;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #64748b; 
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Inputs mejorados */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.8); /* Input ligeramente transparente */
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6; 
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Botón de acción principal */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.btn-primary {
    background-color: #3b82f6;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alertas en el login */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}