/* ---------- RESET Y ESTILOS BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    background: linear-gradient(135deg, #1a1c20 0%, #242830 100%);
    background-image: 
        linear-gradient(135deg, #1a1c20 0%, #242830 100%),
        repeating-linear-gradient(45deg, #2c3e50 25%, transparent 25%, transparent 75%, #2c3e50 75%, #2c3e50),
        repeating-linear-gradient(45deg, #2c3e50 25%, #1a1c20 25%, #1a1c20 75%, #2c3e50 75%, #2c3e50);
    background-position: 0 0, 10px 10px, 10px 10px;
    background-size: 100% 100%, 20px 20px, 20px 20px;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* ---------- CONTENEDOR LOGIN ---------- */
.login-container {
    background: rgba(26, 28, 32, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* ---------- ENCABEZADO ---------- */
.login-container h2 {
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

/* ---------- FORMULARIO ---------- */
#loginForm {
    width: 100%;
}

.login-container label {
    display: block;
    margin: 15px 0 5px;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

/* ---------- INPUTS ---------- */
.login-container input[type="text"], 
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-sizing: border-box;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.login-container input[type="text"]:focus, 
.login-container input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.login-container input[type="text"]::placeholder, 
.login-container input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- BOTÓN ---------- */
.login-container button {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* ---------- MENSAJE DE ERROR ---------- */
.error-message {
    background: rgba(216, 0, 12, 0.1);
    color: #ff6b6b;
    padding: 10px;
    border: 1px solid rgba(216, 0, 12, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

/* ---------- LOGO ---------- */
.logo {
    width: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 768px) {
    .login-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    @media (max-width: 480px) {
        .login-container {
            padding: 1rem;
            margin: 10px auto;
        }
    }
    
    .login-container button {
        padding: 10px 15px;
    }
    
    .logo {
        width: 100px;    /* Reduce aún más el logo */
        margin-bottom: 10px; /* Reduce el margen inferior del logo */
    }
    
    .login-container h2 {
        font-size: 1.5rem;
    }
    
    
    h2 {
        margin-bottom: 10px;
    }
    
    .login-container input[type="text"], 
    .login-container input[type="password"] {
        padding: 10px;
        font-size: 14px;
    }

/* ---------- ANIMACIONES ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.5s ease-out;
}