/* UBICACIÓN: admin/login/login.css */

body {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../../assets/img/fondos/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-box {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px 50px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-top: 3px solid var(--color-primary);
    text-align: center;
}

.login-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

.login-header p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 30px;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Espacio para el icono */
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--color-primary);
    background: #000;
}

/* Ojo contraseña */
.toggle-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.toggle-eye:hover { color: white; }

/* Botón Login */
.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    height: 45px; /* Fijo para el loader */
}

.btn-login:hover {
    background: #b20710; /* Rojo más oscuro */
    transform: scale(0.98);
}

/* Footer Links */
.login-footer {
    margin-top: 25px;
    font-size: 0.85rem;
}

.forgot-pass {
    color: #aaa;
    display: block;
    margin-bottom: 10px;
}

.login-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background: rgba(229, 9, 20, 0.2);
    color: #ff4d4d;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none; /* Oculto por defecto */
    border-left: 3px solid #ff4d4d;
    text-align: left;
}

/* Animaciones */
.animate-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loader Spinner */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: none;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }