/**
 *
 * @package   Ven911Core
 * @author    Jose Agustin Brito <jose.brito.911apure@gmail.com>
 * @copyright Copyright (C) 2025 Jose Agustin Brito
 * @license   GNU GPL v3 - https://www.gnu.org/licenses/gpl-3.0.html
 * 
 * Este software es libre: puedes redistribuirlo y/o modificarlo
 * bajo los términos de la GNU GPL v3.
 */

/* ============================================
   ESTILOS DE PÁGINA DE LOGIN
   ============================================ */

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ENCABEZADO
   ============================================ */

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-icon {
    font-size: 4em;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.login-header h1 {
    font-size: 2.2em;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-header p {
    font-size: 1em;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

/* ============================================
   FORMULARIO
   ============================================ */

.login-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2a5298;
    font-weight: 600;
    font-size: 0.95em;
}

.label-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* ============================================
   BOTÓN DE LOGIN
   ============================================ */

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

/* ============================================
   MENSAJES
   ============================================ */

.mensaje-login {
    margin: 0 30px 20px 30px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mensaje-login.activo {
    display: block;
}

.mensaje-login.exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-login.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensaje-login.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================
   FOOTER
   ============================================ */

.login-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    margin: 0 0 5px 0;
    color: #2a5298;
    font-weight: 600;
}

.login-footer small {
    color: #666;
    font-size: 0.85em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .login-box {
        border-radius: 15px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-icon {
        font-size: 3em;
    }
    
    .login-header h1 {
        font-size: 1.8em;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .form-group input {
        padding: 12px 15px;
    }
    
    .btn-login {
        padding: 14px;
        font-size: 1em;
    }
}
